Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit c8d1338

Browse files
authored
Update node-debian.sh
1 parent 6bb7605 commit c8d1338

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script-library/node-debian.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,14 @@ su ${USERNAME} -c "$(cat << EOF
126126
umask 0002
127127
# Do not update profile - we'll do this manually
128128
export PROFILE=/dev/null
129-
echo "temporarily add /home/${USERNAME}/.nvs as git safe directory for nvm install script."
130-
git config --global --add safe.directory /home/${USERNAME}/.nvs
129+
ls -lah /home/${USERNAME}/.nvs
130+
mkdir /home/${USERNAME}/.nvs || chown ${USERNAME}: /home/${USERNAME}/.nvs
131131
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
132132
source ${NVM_DIR}/nvm.sh
133133
if [ "${NODE_VERSION}" != "" ]; then
134134
nvm alias default ${NODE_VERSION}
135135
fi
136136
nvm clear-cache
137-
git config --global --unset safe.directory /home/${USERNAME}/.nvs
138137
EOF
139138
)" 2>&1
140139
# Update rc files

0 commit comments

Comments
 (0)