Skip to content

Commit

Permalink
fix(plugins): make script safer and strict checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Feb 27, 2024
1 parent 620b699 commit 7542f04
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/PLUGIN_TEMPLATE.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -eu

release() {
echo "Template for plug-in"
Expand Down
2 changes: 1 addition & 1 deletion plugins/changelog.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -eu

release() {
log_verbose "CHANGELOG version: $NEXT_RELEASE_TAG"
Expand Down
4 changes: 2 additions & 2 deletions plugins/git.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -eu

# Global variables
export GPG_TTY=$(tty)
Expand Down Expand Up @@ -61,7 +61,7 @@ release() {
prepare

if [[ -n "$GPG_KEY_ID" && -n "$GPG_PASSPHRASE" ]]; then
git tag --sign "$NEXT_RELEASE_TAG" "$CHECKOUT_SHA" --message "Release, tag and sign $RELEASE_TAG_NAME"
git tag --sign "$NEXT_RELEASE_TAG" "$CHECKOUT_SHA" --message "Release, tag and sign $NEXT_RELEASE_TAG"
echo "Created signed Git tag [$NEXT_RELEASE_TAG]!"
else
git tag "$NEXT_RELEASE_TAG" "$CHECKOUT_SHA"
Expand Down
2 changes: 1 addition & 1 deletion plugins/github-release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -eu

release() {
log_verbose "Release tag: $NEXT_RELEASE_TAG"
Expand Down
2 changes: 1 addition & 1 deletion plugins/npm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -eu

release() {
# Publish a `npm` tag
Expand Down

0 comments on commit 7542f04

Please sign in to comment.