Skip to content

Commit 40813b5

Browse files
committed
Only create symlinks if host system is based on musl
1 parent 99e529b commit 40813b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/postinstall

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#!/usr/bin/env bash
22

3+
set -o pipefail
4+
5+
6+
# If host platform is not based on musl, don't create un-prefixed symlinks
7+
readlink /lib/ld-linux.so.2 | grep musl || exit 0
8+
9+
310
#
4-
# Symbolic links for native platform binaries
11+
# Create symbolic links for native platform binaries
512
#
613

714
PLATFORM=

0 commit comments

Comments
 (0)