Queer European MD passionate about IT
1
0

update_image_editor.sh 717 B

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