From 5d7ddfd168a6935d2ec794b453b6a3e61b29fdd1 Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Fri, 4 Aug 2023 16:28:54 -0400 Subject: [PATCH] Squashed 'scripts/lib/' changes from 42c602ae..f9c94fce f9c94fce fix: correct issue with calling dependencies and additionals git-subtree-dir: scripts/lib git-subtree-split: f9c94fce7b73016c566775c230b08d72f898a363 --- start.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 9e464b991..525f80ae1 100755 --- a/start.sh +++ b/start.sh @@ -180,6 +180,9 @@ _run() { } _additionals() { + local start_home + start_home="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + declare -a additionals additionals=("$@") @@ -200,12 +203,15 @@ _additionals() { options="${options}y" fi - "$0" "$options" "${additional[@]}" + "$start_home/start.sh" "$options" "${additional[@]}" fi done } _dependencies() { + local start_home + start_home="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + declare -a dependencies dependencies=("$@") @@ -225,7 +231,7 @@ _dependencies() { for dependency in "${dependencies[@]}"; do read -ra dependency <<<"$dependency" - "$0" "$options" "${dependency[@]}" + "$start_home/start.sh" "$options" "${dependency[@]}" done fi }