exit: don't convert numeric exit code to string

This commit is contained in:
Lyndon Brown 2020-03-13 15:41:22 +00:00 committed by Raphaël Hertzog
parent 1cbe8f8aac
commit 24c3582b2c
1 changed files with 2 additions and 2 deletions

View File

@ -69,14 +69,14 @@ Exit_exit ()
if [ "${VALUE}" -ne 0 ]; then
Echo_error "An unexpected failure occurred, exiting..."
fi
Exit "${VALUE}"
Exit ${VALUE}
}
Exit_other ()
{
local VALUE=$?
Echo_warning "Unexpected early exit caught, attempting cleanup..."
Exit "${VALUE}"
Exit ${VALUE}
}
Setup_clean_exit ()