Skip to content

Instantly share code, notes, and snippets.

@drbh
Created September 11, 2018 23:56
Show Gist options
  • Select an option

  • Save drbh/2d394013076ed4c940fcdaaa576c09c1 to your computer and use it in GitHub Desktop.

Select an option

Save drbh/2d394013076ed4c940fcdaaa576c09c1 to your computer and use it in GitHub Desktop.
re-download Sketch application with a script. Avoids trial timeout period
#!/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