summaryrefslogtreecommitdiff
path: root/getgmissing.sh
diff options
context:
space:
mode:
authorNick White <hg@njw.me.uk>2011-08-02 21:05:19 +0100
committerNick White <hg@njw.me.uk>2011-08-02 21:05:19 +0100
commit6b8f282b5b0c0621ebcf6124f6a6cb90fed47297 (patch)
treed6c15e04376a15c2a49b33a0f3326ad8176e0ba0 /getgmissing.sh
parent2727e8e79bd5901aa7f2c719c65b7d8647cb82ec (diff)
More getgmissing updates
Diffstat (limited to 'getgmissing.sh')
-rwxr-xr-xgetgmissing.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/getgmissing.sh b/getgmissing.sh
index 5436fc2..5d6ee18 100755
--- a/getgmissing.sh
+++ b/getgmissing.sh
@@ -7,6 +7,6 @@ getgbook -p $1 2>/dev/null | while read i
do
code=`echo $i|awk '{print $1}'`
num=`echo $i|awk '{print $2}'`
- test -n "$num" && num=`printf '%04d' || num=$code
+ test -n "$num" && num=`printf '%04d' $num` || num=$code
test -f $num.png || echo $code | getgbook $1
done