use -f in shell script.

This commit is contained in:
Christopher Jeffrey 2014-08-05 19:09:03 -07:00
parent a4a5fe8fca
commit 05a9a73857

11
slocked
View File

@ -14,8 +14,11 @@ if test -n "$ps"; then
fi fi
exec 2> /dev/null exec 2> /dev/null
pw=$1
if test -z "$pw"; then if test -z "$1"; then
pw=$(cat ~/.slock_passwd) exec slock -f ~/.slock_passwd
exit 1
fi fi
exec slock -p "$pw"
exec slock -p "$1"
exit 1