Cleaned up check for directory in PATH

Buddy Sandidge 8 years ago
parent 26abac727b
commit 9ebb538e24

@ -36,7 +36,7 @@ fi
function _add-path {
dir="$1"
if [[ $PATH =~ .*$dir.* ]]; then
if [[ $PATH =~ "$dir" ]]; then
return
fi
if [[ -d $dir ]]; then

Loading…
Cancel
Save