-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
install.sh
executable file
路18 lines (13 loc) 路 732 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -euo pipefail
iTerm=iterm.scpt
terminal=terminal.scpt
hyper=hyper.scpt
DOWNLOAD_ITERM_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${iTerm}
DOWNLOAD_TERMINAL_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${terminal}
DOWNLOAD_HYPER_URI=https://raw.githubusercontent.com/onmyway133/FinderGo/master/FinderSyncExtension/Scripts/${hyper}
SCRIPT_DIR="${HOME}/Library/Application Scripts/com.onmyway133.FinderGo.FinderSyncExtension"
mkdir -p "${SCRIPT_DIR}"
curl $DOWNLOAD_ITERM_URI -o "${SCRIPT_DIR}/${iTerm}"
curl $DOWNLOAD_TERMINAL_URI -o "${SCRIPT_DIR}/${terminal}"
curl $DOWNLOAD_HYPER_URI -o "${SCRIPT_DIR}/${hyper}"