|
1 | 1 | #!/usr/bin/env sh
|
2 |
| -update='2024-01-14' |
| 2 | +update='2024-01-15' |
3 | 3 | IFS="$(command -p -- printf -- ' \t\n|')" && IFS="${IFS%'|'}"
|
4 | 4 | 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
|
5 | 5 | command -p -- printf -- '\360\237\223\241 verifying network connectivity' >&2
|
6 | 6 | command -p -- sleep 1
|
7 | 7 | i='0'
|
8 |
| -while test "${i-}" -lt "$(command -p -- getconf -- CHAR_MAX)"; do |
9 |
| - if test "$((i / 3 % 2))" -eq '0'; then command -p -- printf -- '.' >&2; else command -p -- printf -- '\b' >&2; fi |
| 8 | +while command -p -- test "${i-}" -lt "$(command -p -- getconf -- CHAR_MAX)"; do |
| 9 | + if command -p -- test "$((i / 3 % 2))" -eq '0'; then command -p -- printf -- '.' >&2; else command -p -- printf -- '\b' >&2; fi |
10 | 10 | i="$((i + 1))"
|
11 | 11 | done
|
12 | 12 | i=''
|
@@ -71,10 +71,10 @@ if command -v -- rustup >/dev/null 2>&1; then command rustup --verbose update; e
|
71 | 71 | command -p -- printf -- 'checking for npm installation...\n' >&2
|
72 | 72 | if command -v -- npm >/dev/null 2>&1; then
|
73 | 73 | command -p -- printf -- '...and whether this device is can update npm quickly...\n' >&2
|
74 |
| - if test "$(command -p -- getconf -- LONG_BIT)" -gt 32; then |
75 |
| - 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 |
| 74 | + if command -p -- test "$(command -p -- getconf -- LONG_BIT)" -gt 32; then |
| 75 | + while command -p -- 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 | 76 | command npm install --location=global --loglevel=verbose --no-fund -- npm
|
77 |
| - 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 |
| 77 | + while command -p -- 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 | 78 | command npm update --location=global --loglevel=verbose --no-fund
|
79 | 79 | else
|
80 | 80 | command -p -- printf -- 'skipping npm update...\n\n' >&2
|
|
0 commit comments