exit: don't convert numeric exit code to string
This commit is contained in:
parent
1cbe8f8aac
commit
24c3582b2c
|
@ -69,14 +69,14 @@ Exit_exit ()
|
||||||
if [ "${VALUE}" -ne 0 ]; then
|
if [ "${VALUE}" -ne 0 ]; then
|
||||||
Echo_error "An unexpected failure occurred, exiting..."
|
Echo_error "An unexpected failure occurred, exiting..."
|
||||||
fi
|
fi
|
||||||
Exit "${VALUE}"
|
Exit ${VALUE}
|
||||||
}
|
}
|
||||||
|
|
||||||
Exit_other ()
|
Exit_other ()
|
||||||
{
|
{
|
||||||
local VALUE=$?
|
local VALUE=$?
|
||||||
Echo_warning "Unexpected early exit caught, attempting cleanup..."
|
Echo_warning "Unexpected early exit caught, attempting cleanup..."
|
||||||
Exit "${VALUE}"
|
Exit ${VALUE}
|
||||||
}
|
}
|
||||||
|
|
||||||
Setup_clean_exit ()
|
Setup_clean_exit ()
|
||||||
|
|
Loading…
Reference in New Issue