Skip to content

Commit

Permalink
In case the required gpg file is not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
F0xedb committed Mar 2, 2023
1 parent 543007a commit b333528
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions repo/gpg_expiry.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [[ -z "$GPG_REPO_KEY" ]]; then
source ~/.profile
fi

# Get the gpg expiry date
res=$(gpg --list-key "$GPG_REPO_KEY" | head -n1 | grep -Eo "expires: ([0-9]+-[0-9]+-[0-9]+)")

Expand Down

0 comments on commit b333528

Please sign in to comment.