From 20b5972c5598c904edcc9f78b22e13812024a832 Mon Sep 17 00:00:00 2001 From: codepuncher Date: Fri, 13 Feb 2026 14:11:11 +0000 Subject: [PATCH] fix(setup): `NVM_DIR` not set for fresh setups --- shell/functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/functions b/shell/functions index 702af4a..5034631 100644 --- a/shell/functions +++ b/shell/functions @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Set "strict mode" +set -euo pipefail + section_start() { printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - echo "${1}" @@ -273,7 +276,7 @@ install_git_delta() { } install_node_packages() { - if [[ ! -d "${NVM_DIR}" ]] || [[ ! -d "${HOME}/.nvm" ]]; then + if [[ ! -d "${NVM_DIR:-}" ]] || [[ ! -d "${HOME}/.nvm" ]]; then install_nvm fi