diff --git a/script/common/parainstall.sh b/script/common/parainstall.sh index 0dfdc79..0324674 100644 --- a/script/common/parainstall.sh +++ b/script/common/parainstall.sh @@ -12,7 +12,7 @@ function parainstall() { sleep 1 # 1sec. # Check if installer still exist - if ! ps $installer_pid > /dev/null ; then # If not exists + if ! ps $INSTALLER_PID > /dev/null ; then # If not exists cat <<-HEREDOC 1>&2 The installer terminated unexpectedly. diff --git a/script/void-kaiten-yaki.sh b/script/void-kaiten-yaki.sh index 678a2eb..50702e4 100644 --- a/script/void-kaiten-yaki.sh +++ b/script/void-kaiten-yaki.sh @@ -91,7 +91,7 @@ function main() { fg # Record the PID of the installer. - installer_pid=$! + export INSTALLER_PID=$! # Common part of the para-install. # Record the install PID, modify the /etc/default/grub of the target,