Commit 4c9d77b7 authored by Guillaume Tucker's avatar Guillaume Tucker
Browse files check if fw file present

Check if the firmware file is present and exit with an error if not.

Signed-off-by: Guillaume Tucker's avatarGuillaume Tucker <>
parent b28a589f
......@@ -20,6 +20,11 @@ backup="${4:-$device-backup.bin}"
exit 1
[ -f "$fw" ] || {
echo "Firmware file not found: $fw"
exit 1
local args="$@"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment