Skip to content

Commit

Permalink
feat: add message when using dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciocostilla committed Mar 1, 2024
1 parent 22d5fb1 commit 158a64e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions push_repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 158a64e

Please sign in to comment.