Clone to right place and use better variable name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user