mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-08 13:13:47 -05:00
pass when dir already in PATH
This commit is contained in:
@@ -413,7 +413,7 @@ _setPATH_() {
|
|||||||
# ARGS:
|
# ARGS:
|
||||||
# $@ - One or more paths
|
# $@ - One or more paths
|
||||||
# OPTS:
|
# OPTS:
|
||||||
# -x Fail if directories are not found
|
# -x - Fail if directories are not found
|
||||||
# OUTS:
|
# OUTS:
|
||||||
# 0: Success
|
# 0: Success
|
||||||
# 1: Failure
|
# 1: Failure
|
||||||
@@ -448,7 +448,7 @@ _setPATH_() {
|
|||||||
if PATH="${_newPath}:${PATH}"; then
|
if PATH="${_newPath}:${PATH}"; then
|
||||||
debug "Added '${_newPath}' to PATH"
|
debug "Added '${_newPath}' to PATH"
|
||||||
else
|
else
|
||||||
return 1
|
debug "'${_newPath}' already in PATH"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
debug "_setPATH_: '${_newPath}' already exists in PATH"
|
debug "_setPATH_: '${_newPath}' already exists in PATH"
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ _setPATH_() {
|
|||||||
if PATH="${_newPath}:${PATH}"; then
|
if PATH="${_newPath}:${PATH}"; then
|
||||||
debug "Added '${_newPath}' to PATH"
|
debug "Added '${_newPath}' to PATH"
|
||||||
else
|
else
|
||||||
return 1
|
debug "'${_newPath}' already in PATH"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
debug "_setPATH_: '${_newPath}' already exists in PATH"
|
debug "_setPATH_: '${_newPath}' already exists in PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user