aboutsummaryrefslogtreecommitdiffstats
path: root/gcov.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 /gcov.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 'gcov.sh')
-rwxr-xr-xgcov.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcov.sh b/gcov.sh
index 65f06a4d4..a9d30b676 100755
--- a/gcov.sh
+++ b/gcov.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
26generate() { 26generate() {
@@ -28,7 +28,7 @@ generate() {
28 lcov --add-tracefile gcov-file-old --add-tracefile gcov-file-new --output-file gcov-file 28 lcov --add-tracefile gcov-file-old --add-tracefile gcov-file-new --output-file gcov-file
29 rm -fr gcov-dir 29 rm -fr gcov-dir
30 genhtml -q gcov-file --output-directory gcov-dir 30 genhtml -q gcov-file --output-directory gcov-dir
31 sudo rm `find . -name *.gcda` 31 find . -name '*.gcda' -exec sudo rm '{}' +
32 cp gcov-file gcov-file-old 32 cp gcov-file gcov-file-old
33 gcov_init 33 gcov_init
34} 34}