1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-13 05:40:16 +01:00
NekoX/run

14 lines
179 B
Plaintext
Raw Normal View History

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