pass when dir already in PATH

This commit is contained in:
Nathaniel Landau
2021-11-12 00:17:35 -05:00
parent 9c6cca0480
commit c5f7257280
2 changed files with 3 additions and 3 deletions

View File

@@ -413,7 +413,7 @@ _setPATH_() {
# ARGS:
# $@ - One or more paths
# OPTS:
# -x Fail if directories are not found
# -x - Fail if directories are not found
# OUTS:
# 0: Success
# 1: Failure
@@ -448,7 +448,7 @@ _setPATH_() {
if PATH="${_newPath}:${PATH}"; then
debug "Added '${_newPath}' to PATH"
else
return 1
debug "'${_newPath}' already in PATH"
fi
else
debug "_setPATH_: '${_newPath}' already exists in PATH"

View File

@@ -129,7 +129,7 @@ _setPATH_() {
if PATH="${_newPath}:${PATH}"; then
debug "Added '${_newPath}' to PATH"
else
return 1
debug "'${_newPath}' already in PATH"
fi
else
debug "_setPATH_: '${_newPath}' already exists in PATH"