Skip to content
Myr

[Refactor] Reduce a sed command with pipe

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Peter Dave Hello · committed by Jordan Harband · parent f524bcb · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:install.sh+1 added-2 removed
240 unmodified lines
241242 local NPM_GLOBAL_MODULES243 NPM_GLOBAL_MODULES="$(244 npm list -g --depth=0 |245 command sed '/ npm@/d' |246 command sed '/ (empty)$/d'245 command sed -e '/ npm@/d' -e '/ (empty)$/d'246 )"247248 local MODULE_COUNT249 MODULE_COUNT="$(
124 unmodified lines