Explorar o código

Update 'sync'

julien colomb %!s(int64=3) %!d(string=hai) anos
pai
achega
054c86b00f
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      sync

+ 7 - 2
sync

@@ -29,14 +29,19 @@ pushd ${loc} > /dev/null
 mkdir -p ./log
 echo "$(date -Iseconds): Sync script executed" >> ./log/gin.log
 
-gin sync
+gin sync 
 checkerror $? "Error occurred during 'gin sync'"
 gin commit .
 checkerror $? "Error occurred during 'gin commit'"
 gin upload
 checkerror $? "Error occurred during 'gin upload'"
+# this is removing big file content if the upload is successful:
+gin remove-content 
+checkerror $? "Error occurred during 'gin remove-content'"
 
-# Uncomment the two lines below to download all large files
+# Uncomment the two lines below to download all large files, you may also want to comment the gin remove-content line above
 # gin get-content .
 # checkerror $? "Error occurred during 'gin get-content'"
+
+
 popd > /dev/null