Nagram/run

14 lines
179 B
Plaintext
Raw Normal View History

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