generated from me/template-mit
Fix OR's to be AND's for checking SYNC folders.
This commit is contained in:
@@ -13,7 +13,7 @@ dir="`basename $DIR`"
|
|||||||
|
|
||||||
## Validations ##
|
## Validations ##
|
||||||
|
|
||||||
if [[ "$DIR" != *"-clone" || "$DIR" != *"-SYNC" ]]; then
|
if [[ "$DIR" != *"-clone" && "$DIR" != *"-SYNC" ]]; then
|
||||||
echo "'$DIR' is not labeled as a CLONE or SYNC. Skipping download."
|
echo "'$DIR' is not labeled as a CLONE or SYNC. Skipping download."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ dir="`basename $DIR`"
|
|||||||
|
|
||||||
## Validations ##
|
## Validations ##
|
||||||
|
|
||||||
if [[ "$DIR" != *"-MASTER" || "$DIR" != *"-SYNC" ]]; then
|
if [[ "$DIR" != *"-MASTER" && "$DIR" != *"-SYNC" ]]; then
|
||||||
echo "'$DIR' is not labeled as a MASTER or SYNC. Skipping upload."
|
echo "'$DIR' is not labeled as a MASTER or SYNC. Skipping upload."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user