Browse Source

[Refactor] Reduce a sed command with pipe

Peter Dave Hello 8 years ago committed by Jordan Harband
parent
commit
3f5fd57881
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 3
      install.sh

3
install.sh

@ -242,8 +242,7 @@ nvm_check_global_modules() { @@ -242,8 +242,7 @@ nvm_check_global_modules() {
local NPM_GLOBAL_MODULES
NPM_GLOBAL_MODULES="$(
npm list -g --depth=0 |
command sed '/ npm@/d' |
command sed '/ (empty)$/d'
command sed -e '/ npm@/d' -e '/ (empty)$/d'
)"
local MODULE_COUNT

Loading…
Cancel
Save