From: Oleg Broytman Date: Sun, 9 Mar 2014 17:33:42 +0000 (+0400) Subject: Micro refactoring X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=29386a52fc79844b081b1d0d8a12c36820b6a43b;p=audio-cdr-video.git Micro refactoring --- diff --git a/set-path b/set-path index 43ff756..1f7499c 100644 --- a/set-path +++ b/set-path @@ -2,7 +2,7 @@ START_DIR="`pwd`" cd "`dirname \"$0\"`" CWD="`pwd`" cd "$START_DIR" -if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then +if echo "$PATH" | grep -qv "\(^\|:\)$CWD\(:\|$\)"; then PATH="$CWD:$PATH" fi START_DIR=''