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