Run scripts in subshell
This commit is contained in:
parent
66886b5f32
commit
8a4f75e8c8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue