From f4853b9ebc5444e65b75de68cdf439d12bb55902 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 21 Dec 2016 20:33:29 -0500 Subject: [PATCH] gentoo-sync: restore flock call --- .bin/gentoo-sync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bin/gentoo-sync b/.bin/gentoo-sync index ed2c071..5d78577 100755 --- a/.bin/gentoo-sync +++ b/.bin/gentoo-sync @@ -11,7 +11,8 @@ conf="/etc/gentoo-sync.conf" [[ -e ${conf} ]] && . "${conf}" bootstrap() { - [[ $(id -u) -eq 0 ]] || exec sudo env -uUNSHARE HOME="$HOME" "$0" "$@" + [[ "${FLOCKER}" != "$0" ]] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" + [[ $(id -u) -eq 0 ]] || exec sudo env -uUNSHARE FLOCKER="${FLOCKER}" HOME="$HOME" "$0" "$@" if [[ -z ${UNSHARE} ]] ; then mount_args= -- 2.39.5