Added check that script is started from proper directory
authorceriel <none@none>
Tue, 19 Apr 1988 16:57:19 +0000 (16:57 +0000)
committerceriel <none@none>
Tue, 19 Apr 1988 16:57:19 +0000 (16:57 +0000)
first/first

index 3cb0555..1b07bca 100755 (executable)
@@ -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 :