Commit 7b5b92f
committed
azure: fix bootstrap extension command error path for bash
On some distros like for example Flatcar, bootstrap extension command is
executed using bash, instead of using e.g. dash on Ubuntu, which does not
allow 'return' calls from the shell, so when currently provisioning fails,
user gets the following confusing error message:
/bin/sh: line 1: return: can only return' from a function or sourced
script
To fix this, let's use 'exit' instead which should be more universal.
Refs #2271
Signed-off-by: Mateusz Gozdek <[email protected]>1 parent c536cf1 commit 7b5b92f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments