From 37f013c835165f8d2ffbc28be27194be7d98245a Mon Sep 17 00:00:00 2001 From: computermouth Date: Thu, 19 May 2016 18:33:22 -0700 Subject: [PATCH] Fix comparison to not use aws for non-PC builds --- chip-local-flash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip-local-flash.sh b/chip-local-flash.sh index 364d809..796d0af 100755 --- a/chip-local-flash.sh +++ b/chip-local-flash.sh @@ -75,7 +75,7 @@ function dl_check { echo "New image available" rm -rf img-$DL_FLAVOR-$DL_METHOD* - if [[ "${DL_FLAVOR}"=="pocket" || "${DL_FLAVOR}"=="pocket-next" ]]; then + if [[ "${DL_FLAVOR}" == "pocket" || "${DL_FLAVOR}" == "pocket-next" ]]; then aws s3 cp s3://opensource.nextthing.co/chippian/$DL_DIST/img-$DL_FLAVOR-$DL_METHOD.tar.gz . || exit 1 else wget opensource.nextthing.co/chippian/$DL_DIST/img-$DL_FLAVOR-$DL_METHOD.tar.gz|| exit 1