Skip to content

Commit 9ad492f

Browse files
Copilotneilime
andcommitted
fix(test): add error handling for gpgconf.ctl removal
Co-authored-by: neilime <[email protected]>
1 parent aa9ec2a commit 9ad492f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

actions/test/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ runs:
157157
gpgconf_ctl="$(dirname "$gpgconf_bin")/gpgconf.ctl"
158158
if [ -f "$gpgconf_ctl" ]; then
159159
echo "Removing malformed gpgconf.ctl: $gpgconf_ctl"
160-
rm -f "$gpgconf_ctl"
160+
if ! rm -f "$gpgconf_ctl"; then
161+
echo "Warning: Failed to remove gpgconf.ctl, GPG may not work correctly"
162+
fi
161163
fi
162164
fi
163165
# Ensure GNUPGHOME is set up correctly

0 commit comments

Comments
 (0)