create_nibis_save.sh 238 B

12345678910
  1. #!/usr/bin/env bash
  2. #$1 folder
  3. #$2 zip filename
  4. if [ -z "$1" ] || [ -z "$2" ]; then
  5. echo "Missing parameter"
  6. echo "create_nibis_save.sh folder zip_filename"
  7. else
  8. python3 prepare_folder_for_save.py --dir $1 && cd $1 && zip -r "$2" *
  9. fi