Enable abra-capsul, fix plugin clone URL

This commit is contained in:
3wc 2021-07-11 17:20:08 +02:00
parent 7a1a436601
commit 19041af9d5
1 changed files with 3 additions and 3 deletions

6
abra
View File

@ -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