|
@@ -1,6 +1,8 @@
|
|
# 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";
|
|
|
|
|
|
+project_directory=$(dirname "$this_script_directory")
|
|
|
|
+
|
|
|
|
+log_file="$this_script_directory/data/log.txt";
|
|
separator="*****"
|
|
separator="*****"
|
|
|
|
|
|
echo "$separator $(date '+%Y-%d-%m %H:%M:%S') - update image-editor begins ... $separator" >> "$log_file";
|
|
echo "$separator $(date '+%Y-%d-%m %H:%M:%S') - update image-editor begins ... $separator" >> "$log_file";
|
|
@@ -8,9 +10,9 @@ echo "$separator $(date '+%Y-%d-%m %H:%M:%S') - update image-editor begins ... $
|
|
git submodule update --remote --merge &>> "$log_file";
|
|
git submodule update --remote --merge &>> "$log_file";
|
|
|
|
|
|
# Delete the outdated folder
|
|
# Delete the outdated folder
|
|
-rm -r "$this_script_directory/static/image-editor" &>> "$log_file";
|
|
|
|
|
|
+rm -r "$project_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" &>> "$log_file";
|
|
|
|
|
|
+cp -r "$project_directory/image-editor/src" "$project_directory/static/image-editor" &>> "$log_file";
|
|
|
|
|
|
echo "$separator ... update image-editor ends $separator" >> "$log_file";
|
|
echo "$separator ... update image-editor ends $separator" >> "$log_file";
|