diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-20 20:31:56 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-22 19:57:25 +0100 |
commit | a163385474f512d9d28a8492e5be240c084c7666 (patch) | |
tree | 227ccdfc3880f9355ea70b6cd3fa74a19b75e505 /utils/lib_nvm.sh | |
parent | 382f4f8fb081699fc3a3d8d7b1ee7546156506fa (diff) | |
download | searxng-a163385474f512d9d28a8492e5be240c084c7666.tar.gz searxng-a163385474f512d9d28a8492e5be240c084c7666.zip |
[mod] lib_nvm.sh: minor improvements / no functional change
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib_nvm.sh')
-rwxr-xr-x | utils/lib_nvm.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/lib_nvm.sh b/utils/lib_nvm.sh index 267ba8a4a..1f7eb66ce 100755 --- a/utils/lib_nvm.sh +++ b/utils/lib_nvm.sh @@ -26,11 +26,12 @@ NVM_LOCAL_FOLDER=.nvm nvm.env() { source "${NVM_DIR}/nvm.sh" source "${NVM_DIR}/bash_completion" + [ "$VERBOSE" = "1" ] && info_msg "sourced NVM environment from ${NVM_DIR}" } nvm.is_installed() { # is true if NVM is installed / in $HOME or even in <repo-root>/.nvm - [[ -d "${NVM_DIR}" ]] + [[ -f "${NVM_DIR}/nvm.sh" ]] } if [[ -z "${NVM_DIR}" ]]; then @@ -40,7 +41,6 @@ fi export NVM_DIR if nvm.is_installed; then - [ "$VERBOSE" = "1" ] && info_msg "source NVM environment from ${NVM_DIR}" nvm.env else # if nvm is not installed, use this function as a wrapper @@ -58,7 +58,7 @@ nvm.is_local() { [ "${NVM_DIR}" = "$(git rev-parse --show-toplevel)/${NVM_LOCAL_FOLDER}" ] } -nvm.min_node(){ +nvm.min_node() { # usage: nvm.min_node 16.3.0 # @@ -87,7 +87,7 @@ nvm.min_node(){ # implement nvm command line # -------------------------- -nvm.help(){ +nvm.help() { cat <<EOF nvm.: use nvm (without dot) to execute nvm commands directly install : install NVM locally at $(git rev-parse --show-toplevel)/${NVM_LOCAL_FOLDER} |