X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=usr_bin%2Fgrml-lock;fp=usr_bin%2Fgrml-lock;h=e3c775c9b47abddb28f607240b092b15ba50fd0d;hb=4b833b84e4d7bbdf01d959ab26ab0fdeb42c6c77;hp=0ef9feba7f1ff1bce0025f494c2fcd8d1123d8ae;hpb=ec7a53a2517d85db80eaba4e0c77210391cbd12c;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