17 lines
265 B
Bash
Executable file
17 lines
265 B
Bash
Executable file
#!/bin/sh -eu
|
|
|
|
RUN_BIN=$(realpath "$0")
|
|
RUN_DIR=$(dirname "$RUN_BIN")
|
|
|
|
export RUN_BIN
|
|
export RUN_DIR
|
|
|
|
task="$1"
|
|
shift
|
|
|
|
set -x
|
|
|
|
if [ -f "$RUN_DIR"/scripts/.local/"$task" ]; then
|
|
exec "$RUN_DIR"/scripts/.local/"$task" "$@"
|
|
fi
|
|
exec "$RUN_DIR"/scripts/"$task" "$@"
|