From e9e29f8ab6f95fdf44d67d3430b8390845747b8f Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Sat, 25 Dec 2021 19:05:16 +0100 Subject: [PATCH] update nvm --- local.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/local.yml b/local.yml index f24be88..3606716 100644 --- a/local.yml +++ b/local.yml @@ -63,9 +63,11 @@ - name: install nvm env lineinfile: path: /home/gianm/.zshrc - line: 'export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' + line: '\x0a export NVM_DIR="$HOME/.nvm" \x0a + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"\x0a + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"\x0a' - name: install node + become: true + become_user: gianm shell: zsh && source /home/gianm/.zshrc && nvm install --lts \ No newline at end of file