y4shg commited on
Commit
ea73b65
·
verified ·
1 Parent(s): 62ebd42

Update watch_config.sh

Browse files
Files changed (1) hide show
  1. watch_config.sh +5 -6
watch_config.sh CHANGED
@@ -32,17 +32,16 @@ log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
32
 
33
  fetch_meta() {
34
  # Returns JSON with sha + download_url
35
- curl -fsSL \
36
- -H "Authorization: token ${G_TOKEN}" \
37
- -H "Accept: application/vnd.github.v3+json" \
38
  "${API_BASE}"
39
  }
40
 
41
  download_config() {
42
  local download_url="$1"
43
- curl -fsSL \
44
- -H "Authorization: token ${G_TOKEN}" \
45
- -o "${CONFIG_PATH}" \
46
  "${download_url}"
47
  }
48
 
 
32
 
33
  fetch_meta() {
34
  # Returns JSON with sha + download_url
35
+ wget -qO- \
36
+ --header="Authorization: token ${G_TOKEN}" \
37
+ --header="Accept: application/vnd.github.v3+json" \
38
  "${API_BASE}"
39
  }
40
 
41
  download_config() {
42
  local download_url="$1"
43
+ wget -qO "${CONFIG_PATH}" \
44
+ --header="Authorization: token ${G_TOKEN}" \
 
45
  "${download_url}"
46
  }
47