Skip to content

Commit

Permalink
bin/flatcar-install: explicit return
Browse files Browse the repository at this point in the history
Somehow, with the bash upgrade the trap RETURN signal is not handled
correctly (it's ignored).

Adding an explicit return makes it work.

Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Jun 14, 2023
1 parent 658eb0e commit f962af0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/flatcar-install
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,10 @@ function write_to_disk() {
done
[ -z "$try" ] || exit 1
udevadm settle
# We explicitly 'return' to be caught by the trap
# defined at the beginning of the function.
# Otherwise, the trap is simply ignored.
return
}
function install_from_file() {
Expand Down

0 comments on commit f962af0

Please sign in to comment.