* caps-ctrl: make sure the script works on non-Grml systems
as well.
- -- Michael Prokop <mika@grml.org> Sun, 21 Mar 2010 23:24:35 +0100
+ [ Michael Prokop ]
+ * grml-lock: avoid shell syntax warning if gdialog/zenity
+ aren't available.
+
+ -- Michael Prokop <mika@grml.org> Mon, 22 Mar 2010 23:31:05 +0100
grml-scripts (1.2.10) unstable; urgency=low
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