Skip to content

Commit

Permalink
provision.sh: Allow continuing after checksum fail
Browse files Browse the repository at this point in the history
  • Loading branch information
rvolosatovs committed Mar 6, 2020
1 parent a9fd900 commit 24ac507
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ function pushWirnetStationFirmware {
printf "Checksum matching failed:\n" >&2
printf "${err}\n" >&2
set -e
return 1
read -r -n 1 -p "Continue?[y/n]" ans
printf '\n' >&2
if [[ ! "${ans}" = "y" ]]; then
return 1
fi
return 0
fi
set -e

Expand Down

0 comments on commit 24ac507

Please sign in to comment.