diff --git a/.github/actions/decrypt.sh b/.github/actions/decrypt.sh index f4e8d36ed..3c99a2aae 100755 --- a/.github/actions/decrypt.sh +++ b/.github/actions/decrypt.sh @@ -27,6 +27,11 @@ gpg --batch \ --output "$credsfile" \ "$gpgfile" -tar xlvvf "$credsfile" --directory "$credspath" +if [[ "${RUNNER_OS}" == "macOS" ]]; then + tar="gtar" +else + tar="tar' + +"$tar" xlvvf "$credsfile" --directory "$credspath" rm -rvf "$gpgfile" rm -rvf "$credsfile"