]> git.phdru.name Git - bookmarks_db.git/commitdiff
Rename CWD to PROG_DIR
authorOleg Broytman <phd@phdru.name>
Wed, 30 Apr 2014 00:01:56 +0000 (04:01 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 30 Apr 2014 00:01:56 +0000 (04:01 +0400)
set-path

index 1f7499ceec0881fa3a36f388d2eabae9abd54385..314de26660e56d503faa6ffce076eb2421040a07 100644 (file)
--- a/set-path
+++ b/set-path
@@ -1,10 +1,10 @@
 START_DIR="`pwd`"
 cd "`dirname \"$0\"`"
-CWD="`pwd`"
+PROG_DIR="`pwd`"
 cd "$START_DIR"
-if echo "$PATH" | grep -qv "\(^\|:\)$CWD\(:\|$\)"; then
-   PATH="$CWD:$PATH"
+if echo "$PATH" | grep -qv "\(^\|:\)$PROG_DIR\(:\|$\)"; then
+   PATH="$PROG_DIR:$PATH"
 fi
 START_DIR=''
-CWD=''
-unset START_DIR CWD
+PROG_DIR=''
+unset START_DIR PROG_DIR