fix shellcheck errors in 2018/burton2/spotcheck.sh
This commit is contained in:
1 parent
9a922ba3f9
commit
f16d297c69
1 file changed
+11
-11
+11
-11
@@ -1,26 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ioc=$1
|
||||
: ${iocccsize:=iocccsize}
|
||||
: ${ioc:=prog}
|
||||
ioc="$1"
|
||||
: "${iocccsize:=iocccsize}"
|
||||
: "${ioc:=prog}"
|
||||
|
||||
opt=-crs
|
||||
kopt=-kcrs
|
||||
|
||||
for name in $*; do
|
||||
for name in "$@"; do
|
||||
|
||||
if test $name != $ioc; then
|
||||
if test "$name" != "$ioc"; then
|
||||
|
||||
a=$($ioc $opt < $name 2>&1)
|
||||
b=$($iocccsize $opt < $name 2>&1)
|
||||
a=$("$ioc" "$opt" < "$name" 2>&1)
|
||||
b=$("$iocccsize" "$opt" < "$name" 2>&1)
|
||||
if test "$a" != "$b"; then
|
||||
echo $a , $b , $name
|
||||
echo "$a" , "$b" , "$name"
|
||||
fi
|
||||
|
||||
a=$($ioc $kopt < $name 2>&1)
|
||||
b=$($iocccsize $kopt < $name 2>&1)
|
||||
a=$("$ioc" "$kopt" < "$name" 2>&1)
|
||||
b=$("$iocccsize" "$kopt" < "$name" 2>&1)
|
||||
if test "$a" != "$b"; then
|
||||
echo $a , $b , $name " keep"
|
||||
echo "$a" , "$b" , "$name" " keep"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user