From: Tails developers Date: Thu, 10 Nov 2011 17:58:04 +0000 (+0100) Subject: Fixing a "sh: bad number" when $offset is not passed to setup_loop(). X-Git-Tag: debian/3.0_a23-1~12 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=d8df882369aad68caf3ac39692e2196e932ef15b;hp=6829648b938cf440a572b7cc1b0a0dddb8b16dc8;p=live-boot-grml.git Fixing a "sh: bad number" when $offset is not passed to setup_loop(). --- diff --git a/scripts/live-helpers b/scripts/live-helpers index b812979..bbed909 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -234,7 +234,7 @@ setup_loop () fi fi - if [ 0 -lt "${offset}" ] + if [ -n "${offset}" ] && [ 0 -lt "${offset}" ] then options="${options} -o ${offset}" fi