diff --git a/templates/base.pkr.hcl b/templates/base.pkr.hcl index 9e02ec4..cf3b5f3 100644 --- a/templates/base.pkr.hcl +++ b/templates/base.pkr.hcl @@ -102,7 +102,11 @@ build { "brew install nvm", "mkdir ~/.nvm", "echo \"export NVM_DIR=\"$HOME/.nvm\"\" >> ~/.zprofile", - "echo \"[ -s \"/opt/homebrew/opt/nvm/nvm.sh\" ] && \\. \"/opt/homebrew/opt/nvm/nvm.sh\"\" >> ~/.zprofile", + "echo \"[ -s \"/opt/homebrew/opt/nvm/nvm.sh\" ] && zsh /opt/homebrew/opt/nvm/nvm.sh\" >> ~/.zprofile", + ] + } + provisioner "shell" { + inline = [ "source ~/.zprofile", "nvm install lts/*", "nvm use --lts",