quiz/run

18 lines
265 B
Text
Raw Normal View History

#!/bin/sh -eu
RUN_BIN=$(realpath "$0")
RUN_DIR=$(dirname "$RUN_BIN")
export RUN_BIN
export RUN_DIR
task="$1"
shift
set -x
2021-02-26 18:57:00 +01:00
if [ -f "$RUN_DIR"/scripts/.local/"$task" ]; then
exec "$RUN_DIR"/scripts/.local/"$task" "$@"
fi
exec "$RUN_DIR"/scripts/"$task" "$@"