Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
aaba5ee6
Commit
aaba5ee6
authored
Mar 09, 2013
by
Simó Albert i Beltran
Browse files
qmp_update_upgrade_system function exits with error code if image url is not found.
parent
19c07215
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp_update.sh
View file @
aaba5ee6
...
...
@@ -116,7 +116,7 @@ qmp_update_upgrade_system() {
last_update_info
=
"
$(
qmp_update_check
)
"
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
"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment