depot/third_party/nixpkgs/pkgs/applications/misc/gammu/gammu-config-dialog.patch
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

20 lines
455 B
Diff

--- a/utils/gammu-config
+++ b/utils/gammu-config
@@ -59,16 +59,7 @@
shift
done
-if type dialog > /dev/null 2>&1 ; then
- DIALOG=dialog
-elif type cdialog > /dev/null 2>&1 ; then
- DIALOG=cdialog
-elif type whiptail > /dev/null 2>&1 ; then
- DIALOG=whiptail
-else
- echo "You need dialog, cdialog or whiptail installed to make this work"
- exit 1
-fi
+DIALOG=@dialog@
if [ -f "$CONFIG" ] ; then
if [ ! -w "$CONFIG" ] ; then