Do not allow local remote sync while remote local is in progress
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
CACHE_FILE=".build-cache"
|
||||
REMOTE_PROGRESS=".remote-in-progress"
|
||||
|
||||
needs_build() {
|
||||
# If cache file doesn't exist, require build
|
||||
@@ -45,6 +46,11 @@ upload() {
|
||||
}
|
||||
|
||||
if [ "$1" = "--upload" ]; then
|
||||
if [ -f $REMOTE_PROGRESS ]; then
|
||||
echo "Waiting for remote-local.sh to finish..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
upload
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user