From 395ed2654d2a6a7a2623dfdf68e270e602d6e97a Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Thu, 1 Jul 2021 22:38:49 +0900 Subject: [PATCH] Fix the bug of INSTALLER_PID It was previously variable. Changed it to env variable to refer from function --- script/common/parainstall.sh | 2 +- script/void-kaiten-yaki.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,