Skip to content

Commit

Permalink
Fixing a "sh: bad number" when $offset is not passed to setup_loop().
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails developers authored and daniel-baumann committed Nov 24, 2011
1 parent 6829648 commit d8df882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live-helpers
Expand Up @@ -234,7 +234,7 @@ setup_loop ()
fi
fi

if [ 0 -lt "${offset}" ]
if [ -n "${offset}" ] && [ 0 -lt "${offset}" ]
then
options="${options} -o ${offset}"
fi
Expand Down

0 comments on commit d8df882

Please sign in to comment.