We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nodejs
1 parent 017f007 commit ee80d1fCopy full SHA for ee80d1f
nodejs/main.tf
@@ -22,8 +22,8 @@ variable "nvm_version" {
22
23
variable "nvm_install_prefix" {
24
type = string
25
- description = "The prefix to install nvm to."
26
- default = "$HOME/.nvm"
+ description = "The prefix to install nvm to (relative to $HOME)."
+ default = ".nvm"
27
}
28
29
variable "node_versions" {
nodejs/run.sh
@@ -10,7 +10,8 @@ RESET='\033[0m'
10
11
printf "$${BOLD}Installing nvm!$${RESET}\n"
12
13
-export NVM_DIR="$${INSTALL_PREFIX}/nvm"
+export NVM_DIR="$HOME/$${INSTALL_PREFIX}/nvm"
14
+mkdir -p "$NVM_DIR"
15
16
script="$(curl -sS -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$${NVM_VERSION}/install.sh" 2>&1)"
17
if [ $? -ne 0 ]; then
0 commit comments