From 9ebb538e24de287f87a07f46c2f70959e3eb03be Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 26 Dec 2016 22:47:12 -0800 Subject: [PATCH] Cleaned up check for directory in PATH --- bash/environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/environment b/bash/environment index 034d29e..90de624 100644 --- a/bash/environment +++ b/bash/environment @@ -36,7 +36,7 @@ fi function _add-path { dir="$1" - if [[ $PATH =~ .*$dir.* ]]; then + if [[ $PATH =~ "$dir" ]]; then return fi if [[ -d $dir ]]; then