From: Oleg Broytman Date: Wed, 30 Apr 2014 00:01:24 +0000 (+0400) Subject: Rename CWD to PROG_DIR X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=fddb38544a3b9fe4a1e825d67a9992ef90d6a5a9;p=audio-cdr-video.git 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