From 4266567327dde040c712c61d0c59e9b6aada7f1b Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sat, 7 Feb 2026 14:13:48 +0200 Subject: [PATCH] fix(shell): fix husky shebang and tolerate npm outdated exit code --- config/husky/init.sh | 2 +- scripts/install-npm-packages.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/husky/init.sh b/config/husky/init.sh index b7e59c2..a2770b5 100755 --- a/config/husky/init.sh +++ b/config/husky/init.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/usr/bin/env bash [[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.config/nvm" [[ -s "$NVM_DIR/nvm.sh" ]] && \. "$NVM_DIR/nvm.sh" # This loads nvm diff --git a/scripts/install-npm-packages.sh b/scripts/install-npm-packages.sh index c12495d..7ff54e6 100755 --- a/scripts/install-npm-packages.sh +++ b/scripts/install-npm-packages.sh @@ -43,7 +43,7 @@ install_packages() upgrade_global_packages() { msgr run "Upgrading all global packages" - npm -g --no-progress --no-timing --no-fund outdated + npm -g --no-progress --no-timing --no-fund outdated || true npm -g --no-timing --no-fund upgrade return 0 }