Skip to content

Commit

Permalink
Minor fix for add-gateway (#1302)
Browse files Browse the repository at this point in the history
I noticed that if you tried to add to a .zip file the final image
would be named .img.img
  • Loading branch information
dhylands authored Aug 27, 2018
1 parent 5a35427 commit 6f94f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/add-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ main() {

if [[ "${BASE_IMAGE}" == *.zip ]]; then
# Unzip the base image
GATEWAY_IMAGE="${GATEWAY_IMAGE/.zip/.img}"
GATEWAY_IMAGE="${GATEWAY_IMAGE/.img.zip/.img}"
echo "Unzipping '${BASE_IMAGE}' to '${GATEWAY_IMAGE}'"
unzip -p "${BASE_IMAGE}" > "${GATEWAY_IMAGE}"
else
Expand Down

0 comments on commit 6f94f7f

Please sign in to comment.