From 8402af73cd7b6dce5354597b7a077b17a0d180c0 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 14 Sep 2015 13:00:51 +1000 Subject: [PATCH] fix typo in var name and set -u so it doesn't happen again --- do_stats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/do_stats b/do_stats index 9ae1c26..5a0be99 100755 --- 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 <