Skip to content

Commit

Permalink
uopdate install script
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Nov 15, 2023
1 parent de423b1 commit 6e2ef25
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ PLUGIN="registry.terraform.io/pluralsh/plural"
PLUGIN_NAME="terraform-provider-$(basename "${PLUGIN}")"
PLUGIN_LOCATION="${ROOT_DIR}/build/${PLUGIN_NAME}"
VERSION=0.0.1
FILENAME="${PLUGIN_NAME}_v${VERSION}-${OS}-${ARCH}"
DEST_PATH="${HOME}/.terraform.d/plugins/${PLUGIN}/${VERSION}/${OS}_${ARCH}/${FILENAME}"
DESTINATION="${HOME}/.terraform.d/plugins/${PLUGIN}/${VERSION}/${OS}_${ARCH}/${PLUGIN_NAME}_v${VERSION}-${OS}-${ARCH}"

mkdir -p "$(dirname "${DEST_PATH}")"
cp "${PLUGIN_LOCATION}" "${DEST_PATH}"
echo "Installed ${PLUGIN} into ${DEST_PATH}"
mkdir -p "$(dirname "${DESTINATION}")"
mv "${PLUGIN_LOCATION}" "${DESTINATION}"
echo "Installed ${PLUGIN} into ${DESTINATION}"


0 comments on commit 6e2ef25

Please sign in to comment.