Fix: Use shell to run nodejs commands instead 73/134073/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 11 Apr 2023 22:45:04 +0000 (15:45 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 11 Apr 2023 22:45:04 +0000 (15:45 -0700)
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: Iccf6274bdd9af1e7684e9c132c3f656e23c4edb1

packer/provision/local-builder.yaml

index 0e2976a..a34fdb5 100644 (file)
     - name: Install nodejs and npm
       block:
         - name: 'Pull latest nodejs version'
-          command: 'curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo apt-get install -y nodejs'
+          shell: |
+            curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo apt-get install -y nodejs
           become: yes
         - name: 'Check nodejs version'
           command: node --version