From fddb38544a3b9fe4a1e825d67a9992ef90d6a5a9 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 30 Apr 2014 04:01:24 +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.5