You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os_id="$(get_os_info ID)"# Get the ID for this OS.
101
-
os_version_codename="$(get_os_info VERSION_CODENAME)"# Get the codename for this OS. Note, Alpine does not have a unique codename.
102
-
os_version_id="$(get_os_info VERSION_ID)"# Get the version number for this codename, for example: 10, 20.04, 3.12.4
103
-
[[ "$(wc -w <<<"${os_version_id//\./ }")"-eq"2" ]] && alpine_min_version="310"# Account for variation in the versioning 3.1 or 3.1.0 to make sure the check works correctly
104
-
[[ ${os_id}=~ ^(alpine)$ ]] && os_version_codename="alpine"# If alpine, set the codename to alpine. We check for min v3.10 later with codenames.
100
+
os_id="$(get_os_info ID)"# Get the ID for this OS.
101
+
os_version_codename="$(get_os_info VERSION_CODENAME)"# Get the codename for this OS. Note, Alpine does not have a unique codename.
102
+
os_version_id="$(get_os_info VERSION_ID)"# Get the version number for this codename, for example: 10, 20.04, 3.12.4
103
+
[[ ${os_id}=~ ^(alpine)$ ]] && os_version_codename="alpine"# If alpine, set the codename to alpine. We check for min v3.10 later with codenames.
105
104
106
105
if [[ ${os_id}=~ ^(debian|ubuntu)$ ]];then
107
106
# dpkg --print-architecture give amd64/arm64 and arch gives x86_64/aarch64
os_id="$(get_os_info ID)"# Get the ID for this OS.
105
-
os_version_codename="$(get_os_info VERSION_CODENAME)"# Get the codename for this OS. Note, Alpine does not have a unique codename.
106
-
os_version_id="$(get_os_info VERSION_ID)"# Get the version number for this codename, for example: 10, 20.04, 3.12.4
107
-
[[ "$(wc -w <<<"${os_version_id//\./ }")"-eq"2" ]] && alpine_min_version="310"# Account for variation in the versioning 3.1 or 3.1.0 to make sure the check works correctly
108
-
[[ ${os_id}=~ ^(alpine)$ ]] && os_version_codename="alpine"# If alpine, set the codename to alpine. We check for min v3.10 later with codenames.
104
+
os_id="$(get_os_info ID)"# Get the ID for this OS.
105
+
os_version_codename="$(get_os_info VERSION_CODENAME)"# Get the codename for this OS. Note, Alpine does not have a unique codename.
106
+
os_version_id="$(get_os_info VERSION_ID)"# Get the version number for this codename, for example: 10, 20.04, 3.12.4
107
+
[[ ${os_id}=~ ^(alpine)$ ]] && os_version_codename="alpine"# If alpine, set the codename to alpine. We check for min v3.10 later with codenames.
109
108
110
109
if [[ ${os_id}=~ ^(debian|ubuntu)$ ]];then
111
110
# dpkg --print-architecture give amd64/arm64 and arch gives x86_64/aarch64
0 commit comments