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:
parent
363c3f83ca
commit
74d2f2180d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue