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