File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -151,18 +151,18 @@ runs:
151151 shell : bash
152152 run : |
153153 # Find and remove the malformed gpgconf.ctl file that contains unexpanded shell variables
154+ # The pkgxdev gnupg installs gpgconf.ctl next to the gpgconf binary
154155 if command -v gpgconf >/dev/null 2>&1; then
155- gpgconf_ctl=$(dirname "$(which gpgconf)")/gpgconf.ctl
156+ gpgconf_bin=$(command -v gpgconf)
157+ gpgconf_ctl="$(dirname "$gpgconf_bin")/gpgconf.ctl"
156158 if [ -f "$gpgconf_ctl" ]; then
157159 echo "Removing malformed gpgconf.ctl: $gpgconf_ctl"
158160 rm -f "$gpgconf_ctl"
159161 fi
160162 fi
161163 # Ensure GNUPGHOME is set up correctly
162- if [ -n "$HOME" ]; then
163- mkdir -p "$HOME/.gnupg"
164- chmod 700 "$HOME/.gnupg"
165- fi
164+ mkdir -p "$HOME/.gnupg"
165+ chmod 700 "$HOME/.gnupg"
166166
167167 - name : 📊 Upload coverage to Codecov
168168 if : always() && inputs.coverage == 'codecov'
You can’t perform that action at this time.
0 commit comments