From bb1b58c20b6a04289274ca6091d15d8e920b347a Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Wed, 5 Jun 2013 22:17:59 +0000 Subject: [PATCH] paths why do I touch these things, ever? --- files/common-scripts/syncFiles.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/common-scripts/syncFiles.sh b/files/common-scripts/syncFiles.sh index 1f5a832999..ef665b1d8b 100755 --- a/files/common-scripts/syncFiles.sh +++ b/files/common-scripts/syncFiles.sh @@ -38,11 +38,13 @@ then quit "$0 source dest" fi -newlock $1 +lockname=`basename $1` +newlock $lockname if [ ! -d $2 ] then mkdir $2 fi /usr/bin/rsync -a $HOST::$1/* $2 -cleanlock $1 +cleanlock $lockname +