Cleaned up check for directory in PATH

This commit is contained in:
Buddy Sandidge 2016-12-26 22:47:12 -08:00
parent 26abac727b
commit 9ebb538e24

View File

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