]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix shellcheck SC2006 warnings in 'coverage' script
authorrl1987 <rl1987@sdf.lonestar.org>
Sun, 11 Nov 2018 15:44:41 +0000 (17:44 +0200)
committerGeorge Kadianakis <desnacked@riseup.net>
Thu, 15 Nov 2018 17:35:56 +0000 (19:35 +0200)
scripts/test/coverage

index 59d468ee1e2b658e7732e9ab0745975795ea1900..e611a4be1bd7473aa845d75ed006ed22697c87fb 100755 (executable)
@@ -8,19 +8,19 @@
 dst=$1
 
 for fn in src/core/*/*.c src/feature/*/*.c src/app/*/*.c src/lib/*/*.c; do
-    BN=`basename $fn`
-    DN=`dirname $fn`
-    F=`echo $BN | sed -e 's/\.c$//;'`
+    BN=$(basename $fn)
+    DN=$(dirname $fn)
+    F=$(echo $BN | sed -e 's/\.c$//;')
     GC="${BN}.gcov"
     # Figure out the object file names
-    ONS=`echo ${DN}/src_*-${F}.o`
+    ONS=$(echo ${DN}/src_*-${F}.o)
     ONS_WILDCARD_LITERAL="${DN}/src_*-${F}.o"
     # If the wildcard didn't expand, no files
     if [ "$ONS" != "${ONS_WILDCARD_LITERAL}" ]
     then
       for on in $ONS; do
         # We should have a gcno file
-        GCNO=`echo $on | sed -e 's/\.o$/\.gcno/;'`
+        GCNO=$(echo $on | sed -e 's/\.o$/\.gcno/;')
         if [ -e $GCNO ]
         then
           # No need to test for gcda, since gcov assumes no execution