Do less strict check for supported os
This commit is contained in:
parent
06671c39bd
commit
e98cdecec4
1 changed files with 2 additions and 2 deletions
|
@ -12,13 +12,13 @@ warn ""
|
|||
|
||||
# Check if we are running on a supported OS
|
||||
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
||||
supported_os=("Debian GNU/Linux 11 (bullseye)" "Debian GNU/Linux 12 (bookworm)")
|
||||
supported_os=("bullseye" "bookworm")
|
||||
|
||||
CURRENT_OS=$(lsb_release -d | awk -F"\t" '{print $2}')
|
||||
os_supported=false
|
||||
|
||||
for os in "${supported_os[@]}"; do
|
||||
if [[ $os == "$CURRENT_OS" ]]; then
|
||||
if [[ "$CURRENT_OS" =~ "$os" ]]; then
|
||||
os_supported=true
|
||||
break
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue