Skip to content

Commit

Permalink
Actually iterate through dependencies instead of trying to && them al…
Browse files Browse the repository at this point in the history
…l together in one line
  • Loading branch information
mathew-fleisch committed Nov 21, 2020
1 parent deaef46 commit 0413bdb
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions scripts/get-vendor-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@ if ! [[ -d "$vendor_dir" ]]; then
fi
cd $vendor_dir && rm -rf *
echo "Installing Dependencies..."
dependencies=$(jq -r '.dependencies[].install' $config_file | sed 'N;s/\n/ \&\& /g')
echo "$dependencies"
eval $dependencies
echo "Dependencies installed."
jq -c '.dependencies[]' $config_file
for dep in $(jq -r '.dependencies[] | @base64' $config_file); do
echo "---------------------"
_jq() {
echo ${dep} | base64 --decode | jq -r ${1}
}

this_name=$(_jq '.name')
this_install=$(_jq '.install')

echo "$this_name"
echo "$this_install"
eval $this_install
done
echo "Dependencies installed."

0 comments on commit 0413bdb

Please sign in to comment.