mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
Enter chroot can return an error code on cleanup. We make cleanup best effort
Review URL: http://codereview.chromium.org/1158006
This commit is contained in:
parent
3c6a73ba69
commit
9ef57d996b
@ -134,6 +134,10 @@ function setup_env {
|
|||||||
function teardown_env {
|
function teardown_env {
|
||||||
# Only teardown if we're the last enter_chroot to die
|
# Only teardown if we're the last enter_chroot to die
|
||||||
|
|
||||||
|
# We should not return with an error if cleanup has an error. Cleanup is
|
||||||
|
# best effort only.
|
||||||
|
set +e
|
||||||
|
|
||||||
(
|
(
|
||||||
flock 200
|
flock 200
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user