projects
/
next-scripts
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65e2d12
)
fix typo in var name and set -u so it doesn't happen again
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Mon, 14 Sep 2015 03:00:51 +0000
(13:00 +1000)
committer
Stephen Rothwell
<sfr@canb.auug.org.au>
Mon, 14 Sep 2015 03:00:51 +0000
(13:00 +1000)
do_stats
patch
|
blob
|
history
diff --git
a/do_stats
b/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+ncomms
i
bj))
+ncomm=$((ncommsha1+ncommid+ncomms
u
bj))
pcomm=$((ncomm*100/nrc))
cat <<EOF