Skip to content

Commit

Permalink
Fix strage exit codes with docker exec
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeigarts committed Nov 24, 2016
1 parent 67ff113 commit 9576bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ retry-docker-command() {
local ID="$1" COMMAND="$2"
local i=0 success=false
until [ $i -ge 100 ]; do
set +e; docker exec -it "$ID" bash -c "$COMMAND" 2> /dev/null; exit_code=$? ; set -e
set +e; docker exec -it "$ID" sh -c "$COMMAND" 2> /dev/null; exit_code=$? ; set -e
if [[ "$exit_code" == 0 ]]; then
success=true
break
Expand Down

0 comments on commit 9576bb5

Please sign in to comment.