Minor tweaks

This commit is contained in:
Skylar Grant 2024-06-23 13:54:09 -04:00
parent 4b6863b348
commit 40ecd0b4f2

12
ingest-mac.sh Normal file → Executable file
View File

@ -29,9 +29,11 @@ CURRENT_DATE=$(date +%F)
# Moving mount points to indices, 0=Camera Mode 1=Drone Mode # Moving mount points to indices, 0=Camera Mode 1=Drone Mode
INGEST_MODE=9 # Default to an invalid mode. INGEST_MODE=9 # Default to an invalid mode.
# Mode names to be used in the script later.
declare -a MODES declare -a MODES
MODES[0]="Camera" MODES[0]="Camera"
MODES[1]="Drone" MODES[1]="Drone"
# SD card mount point # SD card mount point
declare -a SD_MOUNT_POINT declare -a SD_MOUNT_POINT
SD_MOUNT_POINT[0]="/Volumes/NO NAME" # Camera SD_MOUNT_POINT[0]="/Volumes/NO NAME" # Camera
@ -69,12 +71,12 @@ set_mode() {
# Mode Prompt # Mode Prompt
mode_prompt() { mode_prompt() {
# Print the selection prompt # Print the selection prompt
echo "[ Photo/Video Ingest Script ]" echo "[ voidf1sh's Ingest Script ]"
echo "" echo ""
echo "Please select an ingest mode:" echo "Please select an ingest mode:"
echo "" echo ""
echo "[1] Camera" echo "[1] ${MODES[0]}"
echo "[2] Drone" echo "[2] ${MODES[1]}"
echo "" echo ""
echo "[0] Exit" echo "[0] Exit"
@ -328,8 +330,8 @@ while true; do
# Empty the screen # Empty the screen
clear clear
# Print the prompt # Print the prompt
echo "[ Photo/Video Ingest Script ]" echo "[ ${MODES[$INGEST_MODE]} Ingest Script ]"
echo "Mode: ${MODES[$INGEST_MODE]}" echo ""
echo "Ingest Source Path: ${SD_MOUNT_POINT[$INGEST_MODE]}${SD_SRC_PATH[$INGEST_MODE]}" echo "Ingest Source Path: ${SD_MOUNT_POINT[$INGEST_MODE]}${SD_SRC_PATH[$INGEST_MODE]}"
echo "Mac Ingest Path: $MAC_INGEST_PATH" echo "Mac Ingest Path: $MAC_INGEST_PATH"
echo "NAS Ingest Path: $NAS_INGEST_PATH" echo "NAS Ingest Path: $NAS_INGEST_PATH"