aboutsummaryrefslogtreecommitdiffstats
path: root/linecnt.sh
diff options
context:
space:
mode:
authorLibravatar a1346054 <36859588+a1346054@users.noreply.github.com>2021-08-31 13:24:56 +0000
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2021-11-05 02:59:23 -0300
commitefcd54c0db501e9438cfc97f3ff2e6aa546ecb55 (patch)
tree3410a9294ea70808a71e741920918adeba11c4d0 /linecnt.sh
parentMerge pull request #4533 from smitsohu/exitcode (diff)
downloadfirejail-efcd54c0db501e9438cfc97f3ff2e6aa546ecb55.tar.gz
firejail-efcd54c0db501e9438cfc97f3ff2e6aa546ecb55.tar.zst
firejail-efcd54c0db501e9438cfc97f3ff2e6aa546ecb55.zip
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.
Diffstat (limited to 'linecnt.sh')
-rwxr-xr-xlinecnt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/linecnt.sh b/linecnt.sh
index ccce2da82..37b4f2a65 100755
--- a/linecnt.sh
+++ b/linecnt.sh
@@ -4,7 +4,7 @@
4# License GPL v2 4# License GPL v2
5 5
6gcov_init() { 6gcov_init() {
7 USER=`whoami` 7 USER="$(whoami)"
8 firejail --help > /dev/null 8 firejail --help > /dev/null
9 firemon --help > /dev/null 9 firemon --help > /dev/null
10 /usr/lib/firejail/fnet --help > /dev/null 10 /usr/lib/firejail/fnet --help > /dev/null
@@ -20,7 +20,7 @@ gcov_init() {
20 /usr/lib/firejail/faudit --help > /dev/null 20 /usr/lib/firejail/faudit --help > /dev/null
21 /usr/lib/firejail/fbuilder --help > /dev/null 21 /usr/lib/firejail/fbuilder --help > /dev/null
22 22
23 sudo chown $USER:$USER `find .` 23 find . -exec sudo chown "$USER:$USER" '{}' +
24} 24}
25 25
26rm -fr gcov-dir 26rm -fr gcov-dir