From c5f7257280493eec35c370677ea2a2832a4afad9 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Fri, 12 Nov 2021 00:17:35 -0500 Subject: [PATCH] pass when dir already in PATH --- template_standalone.sh | 4 ++-- utilities/template_utils.bash | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/template_standalone.sh b/template_standalone.sh index 244e16e..65bfc8a 100755 --- a/template_standalone.sh +++ b/template_standalone.sh @@ -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" diff --git a/utilities/template_utils.bash b/utilities/template_utils.bash index 5d5f4aa..cd92794 100644 --- a/utilities/template_utils.bash +++ b/utilities/template_utils.bash @@ -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"