We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4851d6b commit 3b37c8dCopy full SHA for 3b37c8d
wait-for-deployment
@@ -11,6 +11,9 @@
11
set -o errexit
12
set -o pipefail
13
set -o nounset
14
+# -m enables job control which is otherwise only enabled in interactive mode
15
+# http://unix.stackexchange.com/a/196606/73578
16
+set -m
17
18
DEFAULT_TIMEOUT=60
19
@@ -67,7 +70,7 @@ echo "Waiting for deployment with timeout ${timeout} seconds"
67
70
monitor_timeout $$ &
68
71
readonly timeout_monitor_pid=$!
69
72
-trap 'kill ${timeout_monitor_pid}' EXIT #Stop timeout monitor
73
+trap 'kill -- -${timeout_monitor_pid}' EXIT #Stop timeout monitor
74
75
generation=$(get_generation); readonly generation
76
current_generation=$(get_observed_generation)
0 commit comments