Update Alpine Linux versions
- Add Alpine Linux 3.16 and remove 3.14.
This commit is contained in:
parent
39bdb36484
commit
35969d2bbb
@ -79,8 +79,8 @@ EOF
|
||||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.14/3.15."
|
||||
if [ "$os_ver" != "3.15" ] && [ "$os_ver" != "3.16" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
@ -115,8 +115,8 @@ EOF
|
||||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.14/3.15."
|
||||
if [ "$os_ver" != "3.15" ] && [ "$os_ver" != "3.16" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
@ -83,8 +83,8 @@ EOF
|
||||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.14/3.15."
|
||||
if [ "$os_ver" != "3.15" ] && [ "$os_ver" != "3.16" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
@ -51,8 +51,8 @@ check_os() {
|
||||
;;
|
||||
esac
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.14/3.15."
|
||||
if [ "$os_ver" != "3.15" ] && [ "$os_ver" != "3.16" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -115,8 +115,8 @@ EOF
|
||||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.14/3.15."
|
||||
if [ "$os_ver" != "3.15" ] && [ "$os_ver" != "3.16" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
@ -72,8 +72,8 @@ check_os() {
|
||||
;;
|
||||
esac
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.14" ] && [ "$os_ver" != "3.15" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.14/3.15."
|
||||
if [ "$os_ver" != "3.15" ] && [ "$os_ver" != "3.16" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.15/3.16."
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user