Add Bypass OS Check
This commit is contained in:
parent
869d00b5f9
commit
24ed3009d2
1 changed files with 9 additions and 1 deletions
|
@ -11,9 +11,17 @@ warn "via a Docker container."
|
||||||
warn ""
|
warn ""
|
||||||
|
|
||||||
# Check if we are running on a supported OS
|
# Check if we are running on a supported OS
|
||||||
|
BYPASS_OS_CHECK=${BYPASS_OS_CHECK:-false}
|
||||||
CURRENT_OS=$(lsb_release -d)
|
CURRENT_OS=$(lsb_release -d)
|
||||||
if [[ $CURRENT_OS != *"Debian GNU/Linux 11 (bullseye)"* ]]; then
|
if [[ $CURRENT_OS != *"Debian GNU/Linux 11 (bullseye)"* ]]; then
|
||||||
|
# Strip first feild of string
|
||||||
|
CURRENT_OS=$(echo $CURRENT_OS | cut -d' ' -f2-)
|
||||||
|
if [[ $BYPASS_OS_CHECK != "true" ]]; then
|
||||||
error "${CURRENT_OS} is not supported!"
|
error "${CURRENT_OS} is not supported!"
|
||||||
|
fi
|
||||||
|
warn "Bypassing OS check..."
|
||||||
|
warn "${CURRENT_OS} is not supported!"
|
||||||
|
warn "Please DO NOT report issues regarding this OS!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we are running on a supported architecture
|
# Check if we are running on a supported architecture
|
||||||
|
|
Loading…
Reference in a new issue