diff --git a/home.nix b/home.nix index bd914bd..0d08f34 100644 --- a/home.nix +++ b/home.nix @@ -405,10 +405,10 @@ in exit 1 fi # Converge one npm global to the registry's latest. $1 is the package name, - # $2 is the pgrep pattern that identifies a live process of that package, - # used only to explain that a live process keeps its loaded code. Every - # optional failure returns 0, so `set -e` never aborts the switch and later - # blocks still run. + # $2 is the pgrep pattern matching that package's command line as launched + # from the global bin, used only to explain that a live process keeps its + # loaded code. Every optional failure returns 0, so `set -e` never aborts the + # switch and later blocks still run. converge_npm_global() { pkg="$1" live="$2" @@ -441,8 +441,8 @@ in echo "$pkg: a running process keeps the code it already loaded - $latest takes effect at its next start" >&2 fi } - converge_npm_global backpass "node_modules/backpass/bin/backpass.js" - converge_npm_global acpx "node_modules/acpx/dist/cli.js" + converge_npm_global backpass "/opt/homebrew/bin/backpass" + converge_npm_global acpx "/opt/homebrew/bin/acpx" ''; # kunchenguid/no-mistakes gate (git push no-mistakes) - declarative install + daemon + global config