|
@@ -72,10 +72,11 @@ mkdir -p ./log
|
|
echo "$(date +'%Y-%m-%dT%H:%M:%S'): Sync script executed" >> ./.log/gin.log
|
|
echo "$(date +'%Y-%m-%dT%H:%M:%S'): Sync script executed" >> ./.log/gin.log
|
|
|
|
|
|
echo "Synchronising submodules"
|
|
echo "Synchronising submodules"
|
|
-git submodule foreach gin sync
|
|
|
|
-checkerror $? "Error occurred during 'gin sync'"
|
|
|
|
git submodule foreach gin commit . -m "$commitmessage"
|
|
git submodule foreach gin commit . -m "$commitmessage"
|
|
checkerror $? "Error occurred during 'gin commit'"
|
|
checkerror $? "Error occurred during 'gin commit'"
|
|
|
|
+git submodule foreach gin sync
|
|
|
|
+checkerror $? "Error occurred during 'gin sync'"
|
|
|
|
+
|
|
git submodule foreach gin upload
|
|
git submodule foreach gin upload
|
|
checkerror $? "Error occurred during 'gin upload'"
|
|
checkerror $? "Error occurred during 'gin upload'"
|
|
## remove uploaded (annexed) content
|
|
## remove uploaded (annexed) content
|
|
@@ -91,8 +92,9 @@ if [[ "${syncopt}" <1 ]]; then
|
|
|
|
|
|
|
|
|
|
echo "Synchronising main repository"
|
|
echo "Synchronising main repository"
|
|
-gin sync
|
|
|
|
|
|
+
|
|
gin commit . -m "$commitmessage"
|
|
gin commit . -m "$commitmessage"
|
|
|
|
+gin sync
|
|
gin upload
|
|
gin upload
|
|
# remove uploaded (annexed) content
|
|
# remove uploaded (annexed) content
|
|
if [[ "$syncopt" > 1 ]]; then
|
|
if [[ "$syncopt" > 1 ]]; then
|