Nagram/run

11 lines
168 B
Plaintext
Raw Normal View History

2021-01-16 16:25:30 +00:00
#!/bin/bash
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 04:32:49 +00:00
echo ">> ${TARGET}.sh"
2021-01-17 11:39:32 +00:00
exec "${TARGET}.sh" $@
fi
done