1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2025-01-19 06:20:11 +01:00
NekoX/run

14 lines
179 B
Plaintext
Raw Normal View History

2021-01-17 00:25:30 +08:00
#!/bin/bash
2021-03-05 13:38:05 +08:00
EXEC=""
2021-01-17 00:25:30 +08:00
TARGET="bin"
for e in $@; do
TARGET="$TARGET/$e"
2021-01-17 19:39:32 +08:00
shift
if [ -x "${TARGET}.sh" ]; then
2021-03-05 13:38:05 +08:00
EXEC="${TARGET}.sh"
2021-01-17 19:39:32 +08:00
fi
2021-03-05 13:38:05 +08:00
done
echo ">> $EXEC"
exec "$EXEC" $@