Fix extract_utils when not using blob sections

"$3" evaluates as "" when $3 is empty, and so $# is still 3
When $3 is empty, do not use it

Change-Id: I87df7dd8ed23cac3d4cff16dce0996bbe0a3e6cc
This commit is contained in:
Harry Youd
2017-08-05 09:18:56 +01:00
parent 36dcbd41d3
commit 9c5d129d90

View File

@@ -796,7 +796,11 @@ function extract() {
exit 1
fi
parse_file_list "$1" "$3"
if [ -z "$3" ]; then
parse_file_list "$1"
else
parse_file_list "$1" "$3"
fi
# Allow failing, so we can try $DEST and/or $FILE
set +e