mountman/app/app

13 lines
259 B
Bash
Executable File

#!/usr/bin/env bash
set -e
APP_CMD="$(realpath "$BASH_SOURCE")"
APP_DIR="$(dirname "$APP_CMD")"
source "$APP_DIR/env"
if [ -f "$APP_DIR/cmd/$1" ]; then
source "$APP_DIR/cmd/$1"
exit 0
else
echo "ERROR: Action \"$1\" not found, use: \"$0\" help"
exit 1
fi