diff --git a/packaging/standalone/install.envsubst b/packaging/standalone/install.envsubst index a207bbc03c..637e3a6767 100644 --- a/packaging/standalone/install.envsubst +++ b/packaging/standalone/install.envsubst @@ -43,9 +43,13 @@ get_os() { get_arch() { musl="" if type ldd >/dev/null 2>/dev/null; then - libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1) - if [ -n "$libc" ]; then + if [ "${MISE_INSTALL_MUSL-}" = "1" ] || [ "${MISE_INSTALL_MUSL-}" = "true" ]; then musl="-musl" + else + libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1) + if [ -n "$libc" ]; then + musl="-musl" + fi fi fi arch="$(uname -m)"