17 lines
420 B
Bash
Executable File
17 lines
420 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
SCRIPTS_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
|
default_disk_path="${HOME}/Downloads"
|
|
|
|
for script in "$SCRIPTS_DIR"/on*.sh; do
|
|
[ -f "$script" ] || continue
|
|
script_name="$(basename "$script")"
|
|
|
|
case "$script_name" in
|
|
onSD_DANSEMount.sh) disk_path="/Volumes/SD_DANSE" ;;
|
|
*) disk_path="$default_disk_path" ;;
|
|
esac
|
|
|
|
"$SCRIPTS_DIR/registerApp.sh" "$script" "$disk_path"
|
|
done
|