From 735094b5d2ab0482e651626efd8a738d2396bf18 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Mon, 27 Dec 2021 14:23:15 +0100 Subject: [PATCH] changed nvm command --- local.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local.yml b/local.yml index c6f85b8..d9a1474 100644 --- a/local.yml +++ b/local.yml @@ -56,12 +56,12 @@ - name: install nvm become_user: gianm - shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)" + shell: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash args: creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh" - name: install node become_user: gianm - shell: nvm install --lts + shell: export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install --lts args: executable: /usr/bin/zsh \ No newline at end of file