File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 58
58
- If Homebrew is not installed it will install the latest standalone release
59
59
into ~/.local
60
60
61
- - For FreeBSD, it will install the npm package with yarn or npm.
61
+ - For FreeBSD or Alpine , it will install the npm package with yarn or npm.
62
62
63
63
- If ran on an architecture with no releases, it will install the
64
64
npm package with yarn or npm.
@@ -238,6 +238,17 @@ main() {
238
238
return
239
239
fi
240
240
241
+ if [ " $OS " = " linux" ] && [ " $( distro) " = " alpine" ]; then
242
+ if [ " $METHOD " = standalone ]; then
243
+ echoerr " No precompiled releases available for alpine."
244
+ echoerr ' Please rerun without the "--method standalone" flag to install from npm.'
245
+ exit 1
246
+ fi
247
+ echoh " No precompiled releases available for alpine."
248
+ install_npm
249
+ return
250
+ fi
251
+
241
252
CACHE_DIR=" $( echo_cache_dir) "
242
253
243
254
if [ " $METHOD " = standalone ]; then
@@ -473,6 +484,11 @@ distro() {
473
484
)
474
485
return
475
486
fi
487
+
488
+ if [ -f /etc/alpine-release ]; then
489
+ echo " alpine"
490
+ return
491
+ fi
476
492
}
477
493
478
494
# os_name prints a pretty human readable name for the OS/Distro.
You can’t perform that action at this time.
0 commit comments