Cleaned up check for directory in PATH
This commit is contained in:
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…
Reference in New Issue
Block a user