1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-06-24 08:19:34 +00:00
NekoX/run
2021-03-05 13:38:05 +08:00

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" $@