mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Unfold OR
Co-Authored-By: Kayou <pierre@kayou.io>
This commit is contained in:
parent
1decbd2423
commit
d9aa345ee8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue