|
@@ -1,11 +1,16 @@
|
|
# Get current directory
|
|
# Get current directory
|
|
this_script_directory=$(cd `dirname $0` && pwd);
|
|
this_script_directory=$(cd `dirname $0` && pwd);
|
|
|
|
+log_file="$this_script_directory/dynamic/data/log.txt";
|
|
|
|
+separator="*****"
|
|
|
|
|
|
|
|
+echo "$separator $(date '+%Y-%d-%m %H:%M:%S') - update image-editor begins ... $separator" >> "$log_file";
|
|
# Update git submodules merging remote version into local one
|
|
# Update git submodules merging remote version into local one
|
|
-git submodule update --remote --merge;
|
|
|
|
|
|
+git submodule update --remote --merge &>> "$log_file";
|
|
|
|
|
|
# Delete the outdated folder
|
|
# Delete the outdated folder
|
|
-rm -r $this_script_directory/static/image-editor;
|
|
|
|
|
|
+rm -r "$this_script_directory/static/image-editor" &>> "$log_file";
|
|
|
|
|
|
# Copy the updated folder
|
|
# Copy the updated folder
|
|
-cp -r $this_script_directory/image-editor/src $this_script_directory/static/image-editor;
|
|
|
|
|
|
+cp -r "$this_script_directory/image-editor/src" "$this_script_directory/static/image-editor" &>> "$log_file";
|
|
|
|
+
|
|
|
|
+echo "$separator ... update image-editor ends $separator" >> "$log_file";
|