Skip to content

Commit

Permalink
Remove unnecessary if checks (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored May 6, 2024
1 parent 1784ab8 commit ee33e6e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,21 +363,12 @@ jobs:
echo $BUILD_CERTIFICATE_BASE64 | base64 --decode > $CERTIFICATE_PATH
ls -la $RUNNER_TEMP
security -v verify-cert -c $CERTIFICATE_PATH
if [ $? != 0 ]; then
echo "verifying certificate"
fi
security -v create-keychain -p $KEYCHAIN_PASSWD $KEYCHAIN_PATH
if [ $? != 0 ]; then
echo "create-keychain"
fi
security -v list-keychains
security -v set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security -v unlock-keychain -p $KEYCHAIN_PASSWD $KEYCHAIN_PATH
# import certificate to keychain
security -v import $CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
if [ $? != 0 ]; then
echo "import certificate"
fi
security -v set-key-partition-list -S apple-tool:,apple: -k $KEYCHAIN_PASSWD $KEYCHAIN_PATH
security -v list-keychain -d user -s $KEYCHAIN_PATH
Expand Down

0 comments on commit ee33e6e

Please sign in to comment.