summaryrefslogtreecommitdiff
path: root/utils/lib.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-08 18:37:16 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-08 18:37:16 +0100
commitf5f83b8a99a45198822f4e382575d3147e652e56 (patch)
tree21fb87a1dbd7e0f3097ccc4f5f236b168343d9e4 /utils/lib.sh
parent04ad648105a65a27a0654204a461775d178b49ce (diff)
downloadsearxng-f5f83b8a99a45198822f4e382575d3147e652e56.tar.gz
searxng-f5f83b8a99a45198822f4e382575d3147e652e56.zip
shellcheck: minor fixes to support all dsitros
checked with:: sudo ./utils/lxc.sh cmd -- make test.sh on ubu1804, ubu1910, fedora31 and archlinux. All checks OK except: ubu1604: uses shellcheck v0.3.7 (from 04/2015) which is no longer supported! Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-xutils/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lib.sh b/utils/lib.sh
index 26a26d750..e13acca3e 100755
--- a/utils/lib.sh
+++ b/utils/lib.sh
@@ -4,9 +4,9 @@
# shellcheck disable=SC2059,SC1117
# ubuntu, debian, arch, fedora ...
-DIST_ID=$(source /etc/os-release; echo $ID);
+DIST_ID=$(source /etc/os-release; echo "$ID");
# shellcheck disable=SC2034
-DIST_VERS=$(source /etc/os-release; echo $VERSION_ID);
+DIST_VERS=$(source /etc/os-release; echo "$VERSION_ID");
ADMIN_NAME="${ADMIN_NAME:-$(git config user.name)}"
ADMIN_NAME="${ADMIN_NAME:-$USER}"