Skip to content

Commit 6430cca

Browse files
committed
Improved Alpine distro detection
1 parent 3e70b2b commit 6430cca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/common/system-info.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,12 @@ if does_bin_exist 'uname'; then
627627
uname -r | grep -q "valve.*neptune" && DISTRO="SteamOS"
628628
fi
629629

630-
if [ "${DISTRO}" = "arch" ] \
631-
|| [ "${DISTRO}" = "ARCH" ]; then
630+
if [ "${DISTRO}" = "alpine" ]; then
631+
DISTRO='Alpine Linux'
632+
DISTRO_FAMILY='Alpine'
633+
OS='Linux'
634+
elif [ "${DISTRO}" = "arch" ] \
635+
|| [ "${DISTRO}" = "ARCH" ]; then
632636
DISTRO='Arch Linux'
633637
DISTRO_FAMILY='Arch'
634638
OS='Linux'

0 commit comments

Comments
 (0)