Queer European MD passionate about IT

update_image_editor.sh 682 B

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