Clone to right place and use better variable name
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-06-03 21:47:20 +02:00
parent ca89a3a79e
commit a194c39704
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 4 additions and 3 deletions

View File

@ -29,9 +29,10 @@ run_abra_cmd() {
if [[ $PLUGIN_COMMAND == *"release"* ]]; then
echo "Detected release command, attempting to detect recipe now..."
repo=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2)
echo "Automagically detected $repo as desired recipe repository, cloning now..."
git clone "https://git.autonomic.zone/coop-cloud/$repo.git"
recipe=$(echo "$PLUGIN_COMMAND" | cut -d' ' -f2)
echo "Automagically detected $recipe as desired recipe repository, cloning now..."
mkdir -p /root/.abra/apps
git clone "https://git.autonomic.zone/coop-cloud/$recipe.git" "/root/.abra/apps/$recipe"
fi
# shellcheck disable=SC2086