Skip to content
Snippets Groups Projects
Commit 03c0f4d1 authored by Simon McVittie's avatar Simon McVittie
Browse files

scout-on-soldier: If setup.sh fails, make sure to report it

parent 4b88acab
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ usage () {
}
main () {
local error
local getopt_temp="help"
local runtime
local src
......@@ -115,7 +116,13 @@ main () {
fi
# Make sure pinning is up to date
"$runtime/setup.sh" > /dev/null
if "$runtime/setup.sh" > /dev/null; then
: # OK
else
error="$?"
log "Error: setup.sh failed with exit status $error"
exit "$error"
fi
if [ -n "$saved_ld_preload" ]; then
case "$1" in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment