fix(shell): fix husky shebang and tolerate npm outdated exit code

This commit is contained in:
2026-02-07 14:13:48 +02:00
parent 0104aff8d4
commit 4266567327
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}