X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fgrml-lock;h=e3c775c9b47abddb28f607240b092b15ba50fd0d;hb=5b0c6b200fe0a76b7a78c984733defdb3120ea6a;hp=0ef9feba7f1ff1bce0025f494c2fcd8d1123d8ae;hpb=6a9a73f08abad4c5baa07cfa00ef22dd0fd5aa98;p=grml-scripts.git diff --git a/usr_bin/grml-lock b/usr_bin/grml-lock index 0ef9feb..e3c775c 100755 --- a/usr_bin/grml-lock +++ b/usr_bin/grml-lock @@ -33,7 +33,7 @@ DIALOG='dialog' PWD_CMD="dialog --stdout --title $PN --passwordbox" # only if using X and gdialog + zenity are available use graphical frontend -if [ -n "$DISPLAY" -a -x $(which gdialog) -a -x $(which zenity) ] ; then +if [ -n "$DISPLAY" ] && [ -x "$(which gdialog)" ] && [ -x "$(which zenity)" ] ; then DIALOG='gdialog' PWD_CMD="zenity --title $PN --entry --hide-text" fi