Skip to content

Commit

Permalink
fix: fix link iCloud document path
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Mar 31, 2019
1 parent f086f02 commit 7b417a5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ download and install applications for custom
## usage

```bash
curl -sSL git.io/InitMacDev | bash
curl -sSL -H 'Cache-Control: no-cache' git.io/InitMacDev | bash
```


Expand Down
5 changes: 3 additions & 2 deletions init-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ brew cask install shadowsocksx-ng
# defaults read com.qiuyuzhou.ShadowsocksX-NG > ~/Documents/Shadowconfig/ssx-ng-config.plist
# or export to xml or hex
# defaults export com.qiuyuzhou.ShadowsocksX-NG ~/Documents/Shadowconfig/ssx-ng-config.plist
if [[ -r ~/Documents/Shadowconfig/ssx-ng-config.plist ]]; then
defaults import com.qiuyuzhou.ShadowsocksX-NG ~/Documents/Shadowconfig/ssx-ng-config.plist
# [Hint] absolute path of iCloud is ~/Library/Mobile\ Documents/com~apple~CloudDocs/Documents
if [[ -r ~/Library/Mobile\ Documents/com~apple~CloudDocs/Documents/Shadowconfig/ssx-ng-config.plist ]]; then
defaults import com.qiuyuzhou.ShadowsocksX-NG ~/Library/Mobile\ Documents/com~apple~CloudDocs/Documents/Shadowconfig/ssx-ng-config.plist
nohup /Applications/ShadowsocksX-NG.app/Contents/MacOS/ShadowsocksX-NG &> /dev/null &
fi

Expand Down
1 change: 1 addition & 0 deletions init-sys-preference.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
. ./template-render.sh

# sync docs with iCloud and Dropbox
rm -rf ~/Documents
ln -f -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/Documents ~/Documents
ln -f -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/Documents ~/Dropbox/Documents

Expand Down
6 changes: 3 additions & 3 deletions md5sum.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
108553d63f73ef6ec8be7c84e3f0ef82 init-app-preference.sh
0f44edc45871bc41e6fa445f5d0d8ed7 init-application.sh
eaa132ad5bbcebd1794ab5fd0b46d076 init-proxy.sh
2af6ccc90a473e88d439fb1a8625e0c7 init-sys-preference.sh
1cacf178c73be8df2d3f554ad5d4da76 init-proxy.sh
26aecf13f61c9c25aa7540f1d79466a2 init-sys-preference.sh
e67141ff6ac44519f5fe0bbcfb257b38 init-zsh.sh
ccc38b5b324d4cc9a842eee7d24ec877 init.sh
5112aa4927c7b1232c40fe2b7ab5b2eb template-render.sh
3044ab77195771a607a14140bac3e8d8 verifier.sh
b7288178dafff468dc49e3dc8aaff020 verifier.sh
7e6d5e32fa831cc077c9062786829ebb specific-UTIs-for-app.template
958535bf98b63dc219044405bab594ba app-preferences/Spotlight.alfredappearance
b714940e9676fa90f0a28360df8e9eea app-preferences/aria2.conf
Expand Down
2 changes: 1 addition & 1 deletion verifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ is_command() { command -v $@ &> /dev/null; }

download() {
local file="$1"
if ! curl -sSL "${SOURCE_URL}${file}" -o "$file" --create-dirs; then
if ! curl -sSL -H 'Cache-Control: no-cache' "${SOURCE_URL}${file}" -o "$file" --create-dirs; then
exit 1
fi
}
Expand Down

0 comments on commit 7b417a5

Please sign in to comment.