Skip to content

Commit

Permalink
Updating code to satify lint check
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Farley <[email protected]>
  • Loading branch information
adamfarley committed Nov 27, 2023
1 parent 8bf4627 commit 1222b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/prepareWorkspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ checkingAndDownloadingAlsa() {
# Note that the hkp://keys.gnupg.net keyserver uses round robin DNS to give a different keyserver each
# time we run the command, so this rerun loop allows us to ignore problematic keyservers (timeouts etc).
for i in {1..10}; do
gpg --keyserver hkp://keys.gnupg.net --keyserver-options timeout=300 --recv-keys "${ALSA_LIB_GPGKEYID}"
if [[ $? == 0 ]]; then
if gpg --keyserver hkp://keys.gnupg.net --keyserver-options timeout=300 --recv-keys "${ALSA_LIB_GPGKEYID}"; then
echo "gpg command has passed."
break
elif [[ ${i} -lt 10 ]]; then
echo "gpg recv-keys attempt ${i} has failed. Retrying..."
Expand Down

0 comments on commit 1222b57

Please sign in to comment.