From efcd54c0db501e9438cfc97f3ff2e6aa546ecb55 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Tue, 31 Aug 2021 13:24:56 +0000 Subject: Fix some shellcheck warnings Note: This does not modify the configure script, which is a source of a lot of the remaining shellcheck warnings, because it comes from autoconf and so it makes little sense to try to fix it here. Also, it does not modify the scripts in contrib, because they possibly are maintained at some other place. Similarly with the other scripts that don't appear to be called from any of the makefiles. --- linecnt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linecnt.sh') diff --git a/linecnt.sh b/linecnt.sh index ccce2da82..37b4f2a65 100755 --- a/linecnt.sh +++ b/linecnt.sh @@ -4,7 +4,7 @@ # License GPL v2 gcov_init() { - USER=`whoami` + USER="$(whoami)" firejail --help > /dev/null firemon --help > /dev/null /usr/lib/firejail/fnet --help > /dev/null @@ -20,7 +20,7 @@ gcov_init() { /usr/lib/firejail/faudit --help > /dev/null /usr/lib/firejail/fbuilder --help > /dev/null - sudo chown $USER:$USER `find .` + find . -exec sudo chown "$USER:$USER" '{}' + } rm -fr gcov-dir -- cgit v1.2.3-54-g00ecf