Created
November 27, 2020 23:31
-
-
Save tjluoma/bfb9f452b8c469e77227a674615f4f55 to your computer and use it in GitHub Desktop.
try various fixes for recent problems with Mac App Store on Mojave: “We could not complete your purchase” / “cancelled”
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
#!/usr/bin/env zsh -f | |
# Purpose: Try to get the Mac App Store on Mojave to let Mac App Store apps update without "cancelled" message | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2020-11-25 | |
PATH='/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin' | |
pgrep -x 'App Store' && killall 'App Store' | |
sudo rm -rfv "$TMPDIR/../C/com.apple.appstore/" | |
rm -rfv "$HOME/Library/Caches/com.apple.appstore/" | |
killall -9 appstoreagent | |
open -a 'App Store' | |
exit 0 | |
#EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment