From 29386a52fc79844b081b1d0d8a12c36820b6a43b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Mar 2014 21:33:42 +0400 Subject: [PATCH] Micro refactoring --- set-path | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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='' -- 2.39.5