mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 11:19:54 +02:00
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>
This commit is contained in:
parent
04ad648105
commit
f5f83b8a99
2 changed files with 4 additions and 3 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue