#93: Minor change to script to convert wav files to flac

This commit is contained in:
kdeng00
2024-06-27 20:45:05 -04:00
parent 96780752ee
commit 99e87a4c3a
+17
View File
@@ -5,11 +5,27 @@
# Folder name creation # Folder name creation
# Sub-folder name creation # Sub-folder name creation
echo "tt"
if [[ $# -eq 0 ]]; then
my_text="No arguments provided. Provide four arguments:\n"
my_text+="script.zsh \"working_dir\" \"output_dir\" \"folder_name\" \"sub_folder_name\""
echo "$my_text"
exit
fi
WORK_DIR=$1 WORK_DIR=$1
OUTPUT_DIR=$2 OUTPUT_DIR=$2
FOLDER=$3 FOLDER=$3
SUB_FOLDER=$4 SUB_FOLDER=$4
echo "Working directory: $WORK_DIR"
echo "Output directory: $OUTPUT_DIR"
echo "Folder name: $FOLDER"
echo "Sub folder name: $SUB_FOLDER"
# Validation # Validation
# Check if the Folder and Sub folder has been created # Check if the Folder and Sub folder has been created
@@ -26,3 +42,4 @@ SUB_FOLDER=$4
# Final # Final
# Check if OUTPUT_DIR has the folder structure. Delete if so # Check if OUTPUT_DIR has the folder structure. Delete if so
# Move the folder and sub folder to OUTPUT_DIR # Move the folder and sub folder to OUTPUT_DIR