Cleaned up check for directory in PATH

Buddy Sandidge 8 years ago
parent 26abac727b
commit 9ebb538e24

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

Loading…
Cancel
Save