Skip to content

Commit

Permalink
Squashed 'scripts/lib/' changes from 42c602ae..f9c94fce
Browse files Browse the repository at this point in the history
f9c94fce fix: correct issue with calling dependencies and additionals

git-subtree-dir: scripts/lib
git-subtree-split: f9c94fce7b73016c566775c230b08d72f898a363
  • Loading branch information
1995parham committed Aug 4, 2023
1 parent 65e4b01 commit 5d7ddfd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ _run() {
}

_additionals() {
local start_home
start_home="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

declare -a additionals
additionals=("$@")

Expand All @@ -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=("$@")

Expand All @@ -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
}
Expand Down

0 comments on commit 5d7ddfd

Please sign in to comment.