mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-24 06:50:57 +00:00
Disable SC2001 for generation of the_os
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
776ae92416
commit
b57b3f4588
@ -365,6 +365,7 @@ check_critical_program_versions() {
|
|||||||
is_os_supported() {
|
is_os_supported() {
|
||||||
local os_to_check="${1}"
|
local os_to_check="${1}"
|
||||||
# Strip just the base name of the system using sed
|
# Strip just the base name of the system using sed
|
||||||
|
# shellcheck disable=SC2001
|
||||||
the_os=$(echo "${os_to_check}" | sed 's/ .*//')
|
the_os=$(echo "${os_to_check}" | sed 's/ .*//')
|
||||||
# If the variable is one of our supported OSes,
|
# If the variable is one of our supported OSes,
|
||||||
case "${the_os}" in
|
case "${the_os}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user