Skip to content

Commit 09b7bfa

Browse files
committed
feat: suppress npm fundraising
hide the prompts to fund `npm` packages because this is not the right context for them; fix #44 Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
1 parent 9c803be commit 09b7bfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

update

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
2-
update='2024-01-13'
2+
update='2024-01-14'
33
IFS="$(command -p -- printf -- ' \t\n|')" && IFS="${IFS%'|'}"
44
command -p -- printf -- '\n\n .___ __\n __ ________ __\174 _\057____ _\057 \174_ ____\n\174 \174 \134____ \134 \057 __ \174\134__ \134\134 __\134\057 __ \134\n\174 \174 \057 \174_\076 \076 \057_\057 \174 \057 __ \134\174 \174 \134 ___\057\n\174____\057\174 __\057\134____ \174\050____ \057__\174 \134___ \076\n \174__\174 \134\057 \134\057 \134\057\n a Lucas Larson production\n\n' >&2 && command -p -- sleep 1
55
command -p -- printf -- '\360\237\223\241 verifying network connectivity' >&2
@@ -73,9 +73,9 @@ if command -v -- npm >/dev/null 2>&1; then
7373
command -p -- printf -- '...and whether this device is can update npm quickly...\n' >&2
7474
if test "$(command -p -- getconf -- LONG_BIT)" -gt 32; then
7575
while test "$(command -p -- find -- "$(command npm config --location=global get prefix)" -name '.DS_Store' -type f -print)" != ''; do command -p -- find -- "$(command npm config --location=global get prefix)" -name '.DS_Store' -type f -delete; done
76-
command npm install --location=global --loglevel=verbose -- npm
76+
command npm install --location=global --loglevel=verbose --no-fund -- npm
7777
while test "$(command -p -- find -- "$(command npm config --location=global get prefix)" -name '.DS_Store' -type f -print)" != ''; do command -p -- find -- "$(command npm config --location=global get prefix)" -name '.DS_Store' -type f -delete; done
78-
command npm update --location=global --loglevel=verbose
78+
command npm update --location=global --loglevel=verbose --no-fund
7979
else
8080
command -p -- printf -- 'skipping npm update...\n\n' >&2
8181
command -p -- sleep 1

0 commit comments

Comments
 (0)