1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-08 15:10:55 +00:00

Disable SC2001 for generation of the_os

Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
Adam Warner 2018-04-15 21:36:50 +01:00
parent 776ae92416
commit b57b3f4588
No known key found for this signature in database
GPG Key ID: F5410858022DA5EB

View File

@ -365,6 +365,7 @@ check_critical_program_versions() {
is_os_supported() {
local os_to_check="${1}"
# Strip just the base name of the system using sed
# shellcheck disable=SC2001
the_os=$(echo "${os_to_check}" | sed 's/ .*//')
# If the variable is one of our supported OSes,
case "${the_os}" in