]> git.ozlabs.org Git - next-scripts/commitdiff
fix typo in var name and set -u so it doesn't happen again
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 14 Sep 2015 03:00:51 +0000 (13:00 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 14 Sep 2015 03:00:51 +0000 (13:00 +1000)
do_stats

index 9ae1c263067dd59a9debf3304b56c276058bd6ff..5a0be99ec30f4a2ca3b036873097469d07163991 100755 (executable)
--- a/do_stats
+++ b/do_stats
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 base=$1
 next=$2
 rc=$3
@@ -53,7 +55,7 @@ nnext=$(wc -l <$sd/$next.sha1s)
 ncommsha1=$(wc -l <$sd/common_sha1)
 ncommid=$(wc -l <$sd/common_id)
 ncommsubj=$(wc -l <$sd/common_subj)
-ncomm=$((ncommsha1+ncommid+ncommsibj))
+ncomm=$((ncommsha1+ncommid+ncommsubj))
 pcomm=$((ncomm*100/nrc))
 
 cat <<EOF