13 lines
225 B
Bash
13 lines
225 B
Bash
#!/usr/bin/env bash
|
|
|
|
SCRIPT_DIR="$(dirname $(realpath "$0"))"
|
|
|
|
function run() {
|
|
if [ $# -lt 2 ]; then
|
|
echo "Usage: $0 <category> <script> [args...]"
|
|
return
|
|
fi
|
|
bash "$SCRIPT_DIR/$1/$2.sh" ${@:3}
|
|
}
|
|
|