From 8a4f75e8c80f8b3d0a648beede570039031011cf Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Thu, 22 Feb 2024 08:20:38 +0100 Subject: [PATCH] Run scripts in subshell --- arkdep-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkdep-build b/arkdep-build index 872b61d..c68980f 100755 --- a/arkdep-build +++ b/arkdep-build @@ -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