Skip to content

Commit 1ec4146

Browse files
committed
Use ERR trap instead of EXIT
1 parent 22eb42e commit 1ec4146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function start_vm {
209209
echo ❌ Machine setup failed so deleting $VM_ID in ${machine_zone} ...
210210
${shutdown_command}
211211
}
212-
trap shutdown EXIT
212+
trap shutdown ERR
213213
"
214214

215215
startup_script="

0 commit comments

Comments
 (0)