mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue