From 83f1e4253f4369e801a7cae3a867fcefd867a88e Mon Sep 17 00:00:00 2001 From: Philippe MILINK Date: Sun, 17 Nov 2024 11:35:35 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20la=20fa=C3=A7on=20de=20r=C3=A9cup?= =?UTF-8?q?=C3=A9rer=20la=20version=20de=20nvm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avec le commentaire dans le fichier .nvmrc, le script d'installation affichait : ``` % ./scripts/install_zds.sh +node * [+node] installing nvm (v0.39.5) & node (v18 # needs to be also updated in .github/workflows/ci.yml) & yarn ``` --- scripts/define_variable.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/define_variable.sh b/scripts/define_variable.sh index 9cb082e31a..a3c2e2d291 100644 --- a/scripts/define_variable.sh +++ b/scripts/define_variable.sh @@ -12,7 +12,7 @@ if [[ $ZDS_PIP_VERSION == "" ]]; then ZDS_PIP_VERSION="24.3.1" # needs to be also updated in .github/workflows/ci.yml fi -ZDS_NODE_VERSION=$(cat $ZDSSITE_DIR/.nvmrc) +ZDS_NODE_VERSION=$(head -n 1 $ZDSSITE_DIR/.nvmrc) if [[ $ZDS_NVM_VERSION == "" ]]; then ZDS_NVM_VERSION="0.39.5"