Fix bug in do_fetch, skip empty line

This commit is contained in:
root 2013-02-14 00:00:00 +00:00
parent 3b95011da6
commit b9501e5b25

View file

@ -295,6 +295,7 @@ do_fetch()
printf "%s\n" "$PNEED" | while read PACKLINE
do
[ -z "$PACKLINE" ] && break
PACK=${PACKLINE#"$PACKPFX"}
RCVID="$(GET "$URL" "$PACK" | tee "$TMPPACK_ENCRYPTED" | pack_hash)"
if [ "$RCVID" != "$PACK" ]