Skip to content

Commit

Permalink
fix(switch-smart-card): ignore missing keygrips
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery committed Dec 16, 2020
1 parent e1f1341 commit 09006e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- master
- release/*
- next
- +([0-9])?(.{+([0-9]),x}).x

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion src/sh/scripts/switch-smart-card
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ KEYGRIPS="$(gpg --with-keygrip --list-secret-keys $@ | grep Keygrip | awk '{prin
for keygrip in $KEYGRIPS; do

# remove the keygrip
rm "$HOME/.gnupg/private-keys-v1.d/$keygrip.key" 2> /dev/null
rm "$HOME/.gnupg/private-keys-v1.d/$keygrip.key" 2>/dev/null || true
done

# print the card status
Expand Down

0 comments on commit 09006e7

Please sign in to comment.