Added check that script is started from proper directory

This commit is contained in:
ceriel 1988-04-19 16:57:19 +00:00
parent 39ee09e442
commit 0768c14544

View file

@ -1,3 +1,13 @@
: check that the script is started from the "first" directory
p=`pwd`
case `basename $p` in
first)
;;
*)
echo "this script must be started from the 'first' directory"
exit 3
;;
esac
: check $PATH first
if sh ckpath
then :