public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ee09e
)
Added check that script is started from proper directory
author
ceriel
<none@none>
Tue, 19 Apr 1988 16:57:19 +0000
(16:57 +0000)
committer
ceriel
<none@none>
Tue, 19 Apr 1988 16:57:19 +0000
(16:57 +0000)
first/first
patch
|
blob
|
history
diff --git
a/first/first
b/first/first
index
3cb0555
..
1b07bca
100755
(executable)
--- a/
first/first
+++ b/
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
if sh ckpath
then :