From: Stephen Rothwell Date: Mon, 14 Sep 2015 03:00:51 +0000 (+1000) Subject: fix typo in var name and set -u so it doesn't happen again X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=8402af73cd7b6dce5354597b7a077b17a0d180c0;p=next-scripts fix typo in var name and set -u so it doesn't happen again --- 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 <