mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
21 lines
455 B
Diff
21 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
|