From 8ca6450d98bdc0b2d400d9908f2c50c89ea85a19 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Dec 2012 14:16:27 -0500 Subject: [PATCH] better flock boiler plate that passes args correctly --- .bin/gentoo-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/gentoo-sync b/.bin/gentoo-sync index 1d76859..59f923c 100755 --- a/.bin/gentoo-sync +++ b/.bin/gentoo-sync @@ -1,6 +1,6 @@ #!/bin/bash -[[ ${FLOCKER} != $0 ]] && exec env FLOCKER=$0 flock -en $0 -c "$0 $*" || : +[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || : logdir="/var/log" sync_log="${logdir}/rsync.log" -- 2.39.5