From 6e2ef258b5177551ee373b56026beedeb212a428 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Wed, 15 Nov 2023 13:50:54 +0100 Subject: [PATCH] uopdate install script --- build/install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build/install.sh b/build/install.sh index 74c7e3f..5ba690c 100755 --- a/build/install.sh +++ b/build/install.sh @@ -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}"