Unfold OR

Co-Authored-By: Kayou <pierre@kayou.io>
This commit is contained in:
Maniack Crudelis 2020-04-24 23:51:18 +02:00 committed by GitHub
parent 1decbd2423
commit d9aa345ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,9 @@ ynh_use_nodejs () {
nodejs_path="$node_version_path/$nodejs_version/bin" nodejs_path="$node_version_path/$nodejs_version/bin"
# Load the path of this version of node in $PATH # Load the path of this version of node in $PATH
[[ :$PATH: == *":$nodejs_path"* ]] || PATH="$nodejs_path:$PATH" if [[ :$PATH: != *":$nodejs_path"* ]]; then
PATH="$nodejs_path:$PATH"
fi
} }
# Install a specific version of nodejs # Install a specific version of nodejs