mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-11-25 04:49:19 +01:00
14 lines
179 B
Bash
Executable File
14 lines
179 B
Bash
Executable File
#!/bin/bash
|
|
|
|
EXEC=""
|
|
TARGET="bin"
|
|
for e in $@; do
|
|
TARGET="$TARGET/$e"
|
|
shift
|
|
if [ -x "${TARGET}.sh" ]; then
|
|
EXEC="${TARGET}.sh"
|
|
fi
|
|
done
|
|
|
|
echo ">> $EXEC"
|
|
exec "$EXEC" $@ |