diff --git a/setup/functions.sh b/setup/functions.sh index caedf21..f5da186 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -16,7 +16,7 @@ build_fe() { if ! command -v nvm &> /dev/null; then # shellcheck disable=SC2155 - export NVM_DIR="$([ -z "${XDG_CONFIG_BLOG-}" ] && printf %s "${BLOG}/.nvm" || printf %s "${XDG_CONFIG_BLOG}/nvm")" + export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" fi nvm use "$NODE_VERSION"