Created
December 29, 2018 03:02
-
-
Save phobal/b589b019e47e672fbb5b74665d96229e to your computer and use it in GitHub Desktop.
free use sketch
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/bash | |
| date 0102030405 | |
| # open /Applications/Sketch.app | |
| open /Applications/Sketch.app | |
| # open ~/Downloads/Sketch.app | |
| ntpdate -u time.apple.com | |
| # how to use | |
| # 1. copy this file to anywhere in your macbook | |
| # 2. chmod +x ./sketch.sh | |
| # 3. sudo ./sketch.sh |
Author
Author
In the latest macOS version (Mojave 10.14 Beta) the ntpdate tool has been removed.
please use sntp -sS time.apple.com instead of ntpdate -u time.apple.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maybe you can learning some shell script basic tech, hope useful to you https://www.shellscript.sh/first.html