dirty initial commit
This commit is contained in:
commit
2351c93677
24 changed files with 2203 additions and 0 deletions
18
run
Executable file
18
run
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
RUN_BIN="$(realpath "$0")"
|
||||
RUN_DIR=$(dirname "$RUN_BIN")
|
||||
|
||||
export RUN_BIN
|
||||
export RUN_DIR
|
||||
|
||||
TASK="$1"
|
||||
[ $# -gt 0 ] && shift
|
||||
|
||||
# Map task to scripts here
|
||||
if [ -f "$RUN_DIR/scripts/$TASK" ]; then
|
||||
exec "$RUN_DIR/scripts/$TASK" "$@"
|
||||
else
|
||||
echo "Task not found: $TASK" >&2
|
||||
exit 2
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue