Run scripts in subshell

This commit is contained in:
Dennis ten Hoove 2024-02-22 08:20:38 +01:00
parent 66886b5f32
commit 8a4f75e8c8

View file

@ -148,7 +148,7 @@ if [[ $type == 'archlinux' ]]; then
# Run post-bootstrap script if exists
if [[ -f $variantdir/scripts/post-bootstrap.sh ]]; then
printf '\e[1;34m-->\e[0m\e[1m Running post-bootstrap script\e[0m\n'
source $variantdir/scripts/post-bootstrap.sh
(source $variantdir/scripts/post-bootstrap.sh)
fi
# Read package list and install secondary system components, skip if not used
@ -161,7 +161,7 @@ if [[ $type == 'archlinux' ]]; then
# Run post-install script if exists
if [[ -f $variantdir/scripts/post-install.sh ]]; then
printf '\e[1;34m-->\e[0m\e[1m Running post-install script\e[0m\n'
source $variantdir/scripts/post-install.sh
(source $variantdir/scripts/post-install.sh)
fi
# Clear pacman cache