Added check that script is started from proper directory
This commit is contained in:
parent
843007098b
commit
2b50ed436e
10
first/first
10
first/first
@ -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
|
: check $PATH first
|
||||||
if sh ckpath
|
if sh ckpath
|
||||||
then :
|
then :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user