From: Oleg Broytman Date: Wed, 30 Apr 2014 00:01:56 +0000 (+0400) Subject: Rename CWD to PROG_DIR X-Git-Tag: v4.6.0~45 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=2d964b5fedeaeecd68a4f4de698348a5595906f0 Rename CWD to PROG_DIR --- diff --git a/set-path b/set-path index 1f7499c..314de26 100644 --- 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