From: Mike Frysinger Date: Wed, 26 Dec 2012 19:16:27 +0000 (-0500) Subject: better flock boiler plate that passes args correctly X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8ca6450d98bdc0b2d400d9908f2c50c89ea85a19;p=home.git better flock boiler plate that passes args correctly --- 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"