lock_wrapper: handle --silent with the argument passing

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-01-13 23:15:13 +00:00 committed by Pierre-Yves Chibon
parent 6a4dac866c
commit 73ba1900e6

View file

@ -11,8 +11,11 @@ SCRIPT=$2
SILENT="no"
if [ $# -ge 3 -a "$3" == "--silent" ]; then
SILENT="yes"
shift
fi
shift 2
LOCKDIR="/var/tmp/$NAME"
PIDFILE="$LOCKDIR/pid"