Skip to content

Commit

Permalink
fix: don't kill gentoo install script if it errors before forking
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Apr 16, 2022
1 parent f4040d9 commit 82e32ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 82e32ff

Please sign in to comment.