sign-macos-pkg.sh: don't restore Jenkins secret keychains

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-09-07 19:39:26 +02:00 committed by Jakub
parent 98aaa69e9d
commit c1a5a286ee
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ if [[ -n "${MACOS_KEYCHAIN_FILE}" ]]; then
exit 1
fi
echo -e "\n### Storing original keychain search list..."
ORIG_KEYCHAIN_LIST=$(security list-keychains | grep -v "^/private" | xargs)
# We want to restore the normal keychains and ignore Jenkis created ones
ORIG_KEYCHAIN_LIST=$(security list-keychains | grep -v -e "^/private" -e "secretFiles" | xargs)
# The keychain file needs to be locked afterwards
trap clean_up EXIT ERR