From 063423482c00ffc97cb697d093fdbf0d39421b3c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Mar 2014 21:34:16 +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