fish: typo in npm upgrade script

This commit is contained in:
Charles Gould 2020-06-09 18:05:36 -05:00
parent eddae2e160
commit 34acfe5d93

View File

@ -1,7 +1,7 @@
function npm_upgrade --description "Upgrade npm packages" 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." echo "All packages up-to-date."
else else
echo "Outdated packages: $npm_pkgs_outdated" echo "Outdated packages: $npm_pkgs_outdated"