1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/bin/sh
DIR=configfiles/
FILENAMES="
shouldFail1.conf
shouldFail2.conf
shouldFail3.conf
shouldFail4.conf
shouldFail5.conf
shouldFail6.conf
"
if test ! -f "../swirc"; then
echo "error: no swirc executable"
exit 1
fi
for file in $FILENAMES; do
printf "%b----------%b"\
"\033[1;30m"\
"\033[0m"
printf " %b${DIR}${file}%b " "\033[1;32m" "\033[0m"
printf "%b----------%b"\
"\033[1;30m"\
"\033[0m"
echo ""
if test -f "${DIR}${file}"; then
head -1 "${DIR}${file}"
../swirc -x "${DIR}${file}"
else
echo "error: nonexistent"
fi
done
|