From 34acfe5d93574b9ff32a191633ceeb54ee7daf99 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Tue, 9 Jun 2020 18:05:36 -0500 Subject: [PATCH] fish: typo in npm upgrade script --- fish/functions/npm_upgrade.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/functions/npm_upgrade.fish b/fish/functions/npm_upgrade.fish index 4598b0b..829dcd1 100644 --- a/fish/functions/npm_upgrade.fish +++ b/fish/functions/npm_upgrade.fish @@ -1,7 +1,7 @@ function npm_upgrade --description "Upgrade npm packages" - set --local npm_pkgs_outdated (npm outdated -g --depth=0) + set --local npm_pkgs_outdated (npm outdated -g | awk 'NR > 1 {print $1}') - if test (count $py_pkgs_outdated) = 0 + if test (count $npm_pkgs_outdated) = 0 echo "All packages up-to-date." else echo "Outdated packages: $npm_pkgs_outdated"