Bladeren bron

Stop annoying ShellCheck

Alois Mahdal 6 jaren geleden
bovenliggende
commit
ec0f3f8f24
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6
    6
      src/jat_dump.sh.skel

+ 6
- 6
src/jat_dump.sh.skel Bestand weergeven

@@ -268,7 +268,7 @@ __jat_dump__count() {
268 268
         1:0) many="lines ($size_l)"                     ;;
269 269
         0:1) many="bytes ($size_b)"                     ;;
270 270
         0:0) many="lines ($size_l) and bytes ($size_b)" ;;
271
-        *)   jat__log_error "panic: $FUNCNAME"         ;;
271
+        *)   jat__log_error "panic: ${FUNCNAME[1]}"     ;;
272 272
     esac
273 273
     echo "$many"
274 274
     test -z "$many"
@@ -314,11 +314,11 @@ __jat_dump__logobj() {
314 314
     oname="$(tr / - <<<"$oname")"
315 315
     bloat="$(__jat_dump__count "$opath")"
316 316
 
317
-    debug "$FUNCNAME:otype='$otype'"
318
-    debug "$FUNCNAME:opath='$opath'"
319
-    debug "$FUNCNAME:oname='$oname'"
320
-    debug "$FUNCNAME:oorig='$oorig'"
321
-    debug "$FUNCNAME:bloat='$bloat'"
317
+    debug "${FUNCNAME[1]}:otype='$otype'"
318
+    debug "${FUNCNAME[1]}:opath='$opath'"
319
+    debug "${FUNCNAME[1]}:oname='$oname'"
320
+    debug "${FUNCNAME[1]}:oorig='$oorig'"
321
+    debug "${FUNCNAME[1]}:bloat='$bloat'"
322 322
 
323 323
     # start outputting
324 324
     if test -z "$bloat";