Do not allow local remote sync while remote local is in progress
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
REMOTE_PROGRESS=".remote-in-progress"
|
||||
|
||||
touch $REMOTE_PROGRESS
|
||||
|
||||
sshpass -p "${SERVER_PASSWORD}" \
|
||||
rsync -avzu \
|
||||
`# Version control and editor files` \
|
||||
@@ -26,3 +30,5 @@ sshpass -p "${SERVER_PASSWORD}" \
|
||||
--exclude split-conflicts.sh \
|
||||
-e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . \
|
||||
$1
|
||||
|
||||
rm $REMOTE_PROGRESS
|
||||
|
||||
Reference in New Issue
Block a user