From 2d964b5fedeaeecd68a4f4de698348a5595906f0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 30 Apr 2014 04:01:56 +0400 Subject: [PATCH] Rename CWD to PROG_DIR --- set-path | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.2