#!/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" "$@"