From 158a64e05e3d5e4b71566fc9fc16c2f0938bb965 Mon Sep 17 00:00:00 2001 From: Patricio Costilla Date: Fri, 1 Mar 2024 17:20:02 -0300 Subject: [PATCH] feat: add message when using dry-run --- push_repository.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/push_repository.sh b/push_repository.sh index dac9374..76ff413 100755 --- a/push_repository.sh +++ b/push_repository.sh @@ -51,4 +51,6 @@ echo ''"$HOSTNAME"'/'"$NAMESPACE"'/'"$NAME"'/'"$SYSTEM"'/'"$VERSION"'/upload' if [ "$DRY_RUN" = "false" ]; then wget --no-check-certificate -v --method POST --timeout=0 --header "$AUTH" --header 'Content-Type: application/zip' \ --body-file="$DATA" ''"$HOSTNAME"'/'"$NAMESPACE"'/'"$NAME"'/'"$SYSTEM"'/'"$VERSION"'/upload' +else + echo "(DRY-RUN) Won\'t push anything to Terraform Registry" fi \ No newline at end of file