summaryrefslogtreecommitdiff
path: root/automated/lib
diff options
context:
space:
mode:
Diffstat (limited to 'automated/lib')
-rwxr-xr-xautomated/lib/sh-test-lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index 29fd8f9..39b65cd 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -154,8 +154,8 @@ dist_name() {
if [ -x /usr/bin/lsb_release ]; then
dist="$(lsb_release -si)"
elif [ -f /etc/lsb-release ]; then
- . /etc/lsb-release
- dist="${DISTRIB_ID}"
+ # shellcheck disable=SC1091
+ dist="$(. /etc/lsb-release && echo "${DISTRIB_ID}")"
elif [ -f /etc/debian_version ]; then
dist="Debian"
elif [ -f /etc/fedora-release ]; then