From a194c39704e4d9576674ad3aa3b97449d9525f50 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 3 Jun 2021 21:47:20 +0200 Subject: [PATCH] Clone to right place and use better variable name --- plugin.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin.sh b/plugin.sh index 28d9d42..fa59f04 100755 --- a/plugin.sh +++ b/plugin.sh @@ -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