mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
22 lines
294 B
Bash
Executable File
22 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
|
|
EXEC=""
|
|
TARGET="buildScript"
|
|
declare -A PARAMS
|
|
declare -i INDEX=0
|
|
|
|
for e in $@; do
|
|
TARGET="$TARGET/$e"
|
|
PARAMS[$INDEX]=$e
|
|
INDEX=$INDEX+1
|
|
shift
|
|
if [ -x "${TARGET}.sh" ]; then
|
|
EXEC="${TARGET}.sh"
|
|
PARAMS=()
|
|
INDEX=0
|
|
fi
|
|
done
|
|
|
|
echo ">> $EXEC"
|
|
exec "$EXEC" $PARAMS
|