Skip to content

Commit c6d37ca

Browse files
committed
feedback
1 parent a25502f commit c6d37ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

site/site.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func New(opts *Options) *Handler {
162162

163163
handler.installScript, err = parseInstallScript(opts.SiteFS, opts.BuildInfo)
164164
if err != nil {
165-
_ = xerrors.Errorf("install.sh will be unavailable: %w", err)
165+
_, _ = fmt.Fprintf(os.Stderr, "install.sh will be unavailable: %v", err.Error())
166166
}
167167

168168
return handler

site/static/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ set -eu
55
# See https://github.com/coder/coder#install
66
#
77
# To run:
8-
# curl -L {{ .Origin }}/install.sh | sh
8+
# curl -fsSL "{{ .Origin }}/install.sh" | sh
99

1010
usage() {
1111
arg0="$0"
1212
if [ "$0" = sh ]; then
13-
arg0="curl -fsSL {{ .Origin }}/install.sh | sh -s --"
13+
arg0="curl -fsSL \"{{ .Origin }}/install.sh\" | sh -s --"
1414
else
1515
not_curl_usage="The latest script is available at {{ .Origin }}/install.sh
1616
"

0 commit comments

Comments
 (0)