release-me-sh 0.11.4 → 0.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-me-sh",
3
- "version": "0.11.4",
3
+ "version": "0.11.6",
4
4
  "description": "Blazing fast minimal release workflow script written in Bash with plugins and presets support",
5
5
  "keywords": [
6
6
  "bash",
package/plugins/git.sh CHANGED
@@ -33,6 +33,7 @@ prepare() {
33
33
 
34
34
  SSH_PUBLIC_KEY_FILE=$(mktemp)
35
35
  printf "%s" "${SSH_PUBLIC_KEY}" >>"${SSH_PUBLIC_KEY_FILE}"
36
+ export SSH_PUBLIC_KEY_FILE
36
37
 
37
38
  if [ -n "${SSH_KEY_PASSPHRASE-}" ]; then
38
39
  SSH_ASKPASS_FILE=$(mktemp)
@@ -86,13 +87,15 @@ cleanup() {
86
87
  fi
87
88
 
88
89
  log_verbose "Git GPG config cleanup"
89
- elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
90
+ elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PRIVATE_KEY-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
90
91
  git config --local --unset commit.gpgsign true
91
- git config --local --unset user.signingkey "${SSH_PUBLIC_KEY}"
92
+ git config --local --unset user.signingkey "${SSH_PUBLIC_KEY_FILE}"
92
93
  git config --local --unset tag.forceSignAnnotated true
93
94
  git config --local --unset gpg.format ssh
94
95
 
95
96
  ssh-add -L | grep -F "${SSH_PUBLIC_KEY-}" | ssh-add -d -
97
+ rm -rf "${SSH_PUBLIC_KEY_FILE}"
98
+ unset SSH_PUBLIC_KEY_FILE
96
99
  log_verbose "Git SSH sign is unset"
97
100
  fi
98
101
 
@@ -33,6 +33,7 @@ prepare() {
33
33
 
34
34
  SSH_PUBLIC_KEY_FILE=$(mktemp)
35
35
  printf "%s" "${SSH_PUBLIC_KEY}" >>"${SSH_PUBLIC_KEY_FILE}"
36
+ export SSH_PUBLIC_KEY_FILE
36
37
 
37
38
  if [ -n "${SSH_KEY_PASSPHRASE-}" ]; then
38
39
  SSH_ASKPASS_FILE=$(mktemp)
@@ -86,13 +87,15 @@ cleanup() {
86
87
  fi
87
88
 
88
89
  log_verbose "Git GPG config cleanup"
89
- elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
90
+ elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PRIVATE_KEY-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
90
91
  git config --local --unset commit.gpgsign true
91
- git config --local --unset user.signingkey "${SSH_PUBLIC_KEY}"
92
+ git config --local --unset user.signingkey "${SSH_PUBLIC_KEY_FILE}"
92
93
  git config --local --unset tag.forceSignAnnotated true
93
94
  git config --local --unset gpg.format ssh
94
95
 
95
96
  ssh-add -L | grep -F "${SSH_PUBLIC_KEY-}" | ssh-add -d -
97
+ rm -rf "${SSH_PUBLIC_KEY_FILE}"
98
+ unset SSH_PUBLIC_KEY_FILE
96
99
  log_verbose "Git SSH sign is unset"
97
100
  fi
98
101