From 19041af9d56ebe4da572197ac80e3667bfa92ba2 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 11 Jul 2021 17:20:08 +0200 Subject: [PATCH] Enable abra-capsul, fix plugin clone URL --- abra | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/abra b/abra index de6f129..917df18 100755 --- a/abra +++ b/abra @@ -548,8 +548,8 @@ require_plugin() { fi # shellcheck disable=SC2086 - if ! git clone ${git_extra_args:-} "$GIT_URL/$PLUGIN.git" "$ABRA_DIR/plugins/$PLUGIN" > /dev/null 2>&1 ; then - error "Could not retrieve the $PLUGIN plugin, does it exist?" + if ! git clone ${git_extra_args:-} "$GIT_URL$PLUGIN.git" "$ABRA_DIR/plugins/$PLUGIN" > /dev/null 2>&1 ; then + error "Could not retrieve the plugin '$PLUGIN' from '$GIT_URL$PLUGIN.git' to '$ABRA_DIR/plugins/$PLUGIN', does it exist?" fi if [[ $(cd "$ABRA_DIR/plugins/$PLUGIN" && git branch --list | wc -l) == "0" ]]; then @@ -2562,7 +2562,7 @@ sub_server_new() { PROVIDER="$abra__provider_" - if [ "$PROVIDER" != "hetzner" ]; then + if [ "$PROVIDER" != "hetzner" ] && [ "$PROVIDER" != "capsul" ]; then error "Unknown provider plugin 'abra-${PROVIDER}'" fi