fix: don't kill gentoo install script if it errors before forking
This commit is contained in:
parent
f4040d9679
commit
82e32ffb1f
|
@ -19,8 +19,8 @@ function eerror() {
|
|||
|
||||
function die() {
|
||||
eerror "$*"
|
||||
[[ $$ == "$GENTOO_INSTALL_REPO_SCRIPT_PID" ]] \
|
||||
|| kill "$GENTOO_INSTALL_REPO_SCRIPT_PID"
|
||||
[[ -v GENTOO_INSTALL_REPO_SCRIPT_PID && $$ -ne $GENTOO_INSTALL_REPO_SCRIPT_PID ]] \
|
||||
&& kill "$GENTOO_INSTALL_REPO_SCRIPT_PID"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue