summaryrefslogtreecommitdiff
path: root/getgmissing.sh
diff options
context:
space:
mode:
authorNick White <hg@njw.me.uk>2011-08-02 21:02:15 +0100
committerNick White <hg@njw.me.uk>2011-08-02 21:02:15 +0100
commit2727e8e79bd5901aa7f2c719c65b7d8647cb82ec (patch)
tree81b81cdb78d99ed7d7d7e80ea98866e5af168412 /getgmissing.sh
parentce9df0c08b450ccbe4700ee6dab4a75ecaf2d32b (diff)
Fix getgmissing
Diffstat (limited to 'getgmissing.sh')
-rwxr-xr-x[-rw-r--r--]getgmissing.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/getgmissing.sh b/getgmissing.sh
index d936425..5436fc2 100644..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 '%05d' || num=$code
+ test -n "$num" && num=`printf '%04d' || num=$code
test -f $num.png || echo $code | getgbook $1
done