Developing lightweight computation at the DSG edge

Commit aaba5ee6 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

qmp_update_upgrade_system function exits with error code if image url is not found.

parent 19c07215
......@@ -116,7 +116,7 @@ qmp_update_upgrade_system() {
image_url="$(echo $last_update_info | awk '{print $1}')"
checksum="$(echo $last_update_info | awk '{print $2}')"
[ -z "$image_url" ] && qmp_log "No new system image found" && return 1
[ -z "$image_url" ] && qmp_error "No new system image found"
[ -z "$checksum" ] && qmp_error "Checksum not found!"
qmp_log "Found new system image at $image_url"
Markdown is supported
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