test/system: Silence SC1090

Otherwise https://www.shellcheck.net/ would complain:
  Line 505:
  . "$os_release"
    ^-----------^ SC1090 (warning): ShellCheck can't follow non-constant
                  source. Use a directive to specify location.

See: https://www.shellcheck.net/wiki/SC1090

https://github.com/containers/toolbox/pull/1368
This commit is contained in:
Debarshi Ray 2023-09-19 15:53:38 +02:00
parent 363c3f83ca
commit 74d2f2180d

View file

@ -502,7 +502,9 @@ function get_system_id() (
return
fi
# shellcheck disable=SC1090
. "$os_release"
echo "$ID"
)
@ -518,7 +520,9 @@ function get_system_version() (
return
fi
# shellcheck disable=SC1090
. "$os_release"
echo "$VERSION_ID"
)
@ -528,6 +532,7 @@ function is_fedora_rawhide() (
os_release="$(find_os_release)"
[ -z "$os_release" ] && return 1
# shellcheck disable=SC1090
. "$os_release"
[ "$ID" != "fedora" ] && return 1