-
Notifications
You must be signed in to change notification settings - Fork 1
/
entrypoint.sh
50 lines (46 loc) · 1.31 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
if [[ -v GIST_TOKEN ]] && [[ -v GIST_ID ]]; then
cat <<EOF > /home/coder/.local/share/code-server/User/syncLocalSettings.json
{
"ignoreUploadFiles": [
"state.*",
"syncLocalSettings.json",
".DS_Store",
"sync.lock",
"projects.json",
"projects_cache_vscode.json",
"projects_cache_git.json",
"projects_cache_svn.json",
"gpm_projects.json",
"gpm-recentItems.json"
],
"ignoreUploadFolders": [
"workspaceStorage"
],
"ignoreExtensions": [],
"gistDescription": "Visual Studio Code Settings Sync Gist",
"version": 329,
"token": "$GIST_TOKEN",
"downloadPublicGist": true,
"supportedFileExtensions": [
"json",
"code-snippets"
],
"openTokenLink": true,
"disableUpdateMessage": false,
"lastUpload": null,
"lastDownload": null,
"githubEnterpriseUrl": null,
"askGistName": false,
"customFiles": {},
"hostName": null
}
EOF
cat <<EOF > /home/coder/.local/share/code-server/User/settings.json
{
"sync.autoDownload": true,
"sync.gist": "$GIST_ID"
}
EOF
fi
code-server --disable-telemetry $PWD $@