diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-06-24 11:24:28 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2019-06-25 08:58:36 +0000 |
commit | 129217f6b831635659ccc81a2cdebac4fe01fe59 (patch) | |
tree | 96f87e2aca49ec307344ee245fd923cff5baa0fa /start-container-docker.sh | |
parent | 22716e2c30275c3d7c12c9f3e2ba2d45b6f03df1 (diff) |
start-container-docker.sh: Try to get more debug info in case ssh returns with 255 as error code.
Change-Id: Iade086ffcc1acb1cbea6aaec47f3191ce771d4cf
Diffstat (limited to 'start-container-docker.sh')
-rwxr-xr-x | start-container-docker.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh index de8f799d..743958d9 100755 --- a/start-container-docker.sh +++ b/start-container-docker.sh @@ -267,7 +267,12 @@ ret=0 session_id=$("${docker_run[@]}") || ret=$? if [ $ret -ne 0 ]; then - echo "WARNING: docker run returned an error: $ret, trying to continue nonetheless..." + if [ $ret -eq 255 ]; then + echo "WARNING: ssh $session_host returned an error ($ret). Trying another ssh connexion to get debug logs" + ssh $session_host true + else + echo "WARNING: docker run returned an error: $ret, trying to continue nonetheless..." + fi fi if [ x"$session_id" = x ]; then |