Skip to content

Instantly share code, notes, and snippets.

@whyliam
Created June 7, 2019 14:32
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save whyliam/a27bae053207dcb4c46bb5c9cf8ef274 to your computer and use it in GitHub Desktop.
Save whyliam/a27bae053207dcb4c46bb5c9cf8ef274 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cd $(dirname "$0")
read -sp "Password: " pwd
echo
rm -rf ~/Library/Application Support/com.nssurge.surge-*
echo "${pwd}" | sudo -S date 010110002018
nohup ./Surge\ 3.app/Contents/MacOS/Surge\ 3 &
sleep 20
echo "${pwd}" | sudo -S sntp -sS time.apple.com.
@yihuxingkong
Copy link

nohup那一行现在要改成
nohup ./Surge.app/Contents/MacOS/Surge &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment