Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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.
@ginger1995

This comment has been minimized.

Copy link

ginger1995 commented Sep 8, 2019

您好 还在用吗? 貌似无效了吧 谢谢

@yihuxingkong

This comment has been minimized.

Copy link

yihuxingkong commented May 18, 2020

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
You can’t perform that action at this time.