Created
September 11, 2018 23:56
-
-
Save drbh/2d394013076ed4c940fcdaaa576c09c1 to your computer and use it in GitHub Desktop.
re-download Sketch application with a script. Avoids trial timeout period
This file contains hidden or 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/sh | |
| rm -rf /Applications/Sketch.app/ && \ | |
| echo "Removed Sketch from Applications" && \ | |
| rm -rf /tmp/sketch_tmp_dir/ | |
| mkdir /tmp/sketch_tmp_dir && \ | |
| cd /tmp/sketch_tmp_dir && \ | |
| curl -sS https://download.sketchapp.com/sketch-51.3-57544.zip > file.zip && \ | |
| echo "Downloaded Sketch 51.3" && \ | |
| unzip -q file.zip && \ | |
| rm file.zip && \ | |
| mv /tmp/sketch_tmp_dir/Sketch.app /Applications/Sketch.app && \ | |
| echo "Copied to Applications Folder" && \ | |
| rm -rf /tmp/sketch_tmp_dir/ && \ | |
| open -n /Applications/Sketch.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment