Skip to content

Commit 40dc850

Browse files
committed
fix suggestions
1 parent 96f5dee commit 40dc850

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
Run the setup script to download the provider into your local terraform folder:
44

55
```bash
6+
wget -qO- https://raw.githubusercontent.com/dragonflydb/terraform-provider-dfcloud/man/setup.sh | sh
7+
8+
# or
9+
610
curl https://raw.githubusercontent.com/dragonflydb/terraform-provider-dfcloud/man/setup.sh | sh
711
```

setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
# Configuration
4-
ORGANISATION_NAME="dragonflydb"
4+
ORGANIZATION_NAME="dragonflydb"
55
PROVIDER_NAME="terraform-provider-dfcloud"
66
TF_PROVIDER_NAME="dfcloud"
77

88
# Fetch latest version from GitHub API
9-
VERSION=$(curl -s "https://api.github.com/repos/${ORGANISATION_NAME}/${PROVIDER_NAME}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
9+
VERSION=$(curl -s "https://api.github.com/repos/${ORGANIZATION_NAME}/${PROVIDER_NAME}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
1010
if [ -z "$VERSION" ]; then
1111
echo "Error: Could not fetch latest version"
1212
exit 1
@@ -52,7 +52,7 @@ PLUGIN_DIR="$DEV_OVERRIDES_PATH"
5252
mkdir -p "$PLUGIN_DIR"
5353

5454
# Download URL construction
55-
DOWNLOAD_URL="https://github.com/${ORGANISATION_NAME}/${PROVIDER_NAME}/releases/download/v${VERSION}/${PROVIDER_NAME}_${VERSION}_${OS}_${ARCH}.zip"
55+
DOWNLOAD_URL="https://github.com/${ORGANIZATION_NAME}/${PROVIDER_NAME}/releases/download/v${VERSION}/${PROVIDER_NAME}_${VERSION}_${OS}_${ARCH}.zip"
5656

5757
# Download and extract
5858
echo "Downloading provider version ${VERSION} from: $DOWNLOAD_URL"
@@ -76,7 +76,7 @@ echo "Updating ~/.terraformrc with dev_overrides"
7676
cat > "$TERRAFORMRC" <<EOF
7777
provider_installation {
7878
dev_overrides {
79-
"registry.terraform.io/${ORGANISATION_NAME}/${TF_PROVIDER_NAME}" = "$DEV_OVERRIDES_PATH"
79+
"registry.terraform.io/${ORGANIZATION_NAME}/${TF_PROVIDER_NAME}" = "$DEV_OVERRIDES_PATH"
8080
}
8181
direct {}
8282
}

0 commit comments

Comments
 (0)