Created
October 22, 2012 10:39
-
-
Save lexrus/3930851 to your computer and use it in GitHub Desktop.
Switch keychains for InHouse & AppStore while both certifications have the same name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export MM_KEYCHAIN=(~/Dropbox/mm.keychain) | |
export MM_INHOUSE_KEYCHAIN=(~/Dropbox/mm_inhouse.keychain) | |
cp "$MM_INHOUSE_KEYCHAIN" "$MM_INHOUSE_KEYCHAIN.ori" | |
security delete-keychain "$MM_INHOUSE_KEYCHAIN" | |
if [[ -f "$MM_KEYCHAIN.ori" ]]; then | |
mv "$MM_KEYCHAIN.ori" "$MM_KEYCHAIN" | |
fi | |
open "$MM_KEYCHAIN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export MM_KEYCHAIN=(~/Dropbox/mm.keychain) | |
export MM_INHOUSE_KEYCHAIN=(~/Dropbox/mm_inhouse.keychain) | |
cp "$MM_KEYCHAIN" "$MM_KEYCHAIN.ori" | |
security delete-keychain "$MM_KEYCHAIN" | |
if [[ -f "$MM_INHOUSE_KEYCHAIN.ori" ]]; then | |
mv "$MM_INHOUSE_KEYCHAIN.ori" "$MM_INHOUSE_KEYCHAIN" | |
fi | |
open "$MM_INHOUSE_KEYCHAIN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment