blob: 1118a8230fa9498b28138b1f036e13ad91b83c55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/sh
set -euf
trap "echo 'You are made of stupid!' >&2; exit 23" EXIT
COBRA_PATH="${COBRA_PATH-$PWD}"
## main
for target; do
for path in $COBRA_PATH; do
if test -d "$path/$target"; then
if index="$path/$target/index.sh" && test -f "$index"; then
exec /bin/sh "$index"
fi
fi
done
done
|