Skip to content

feat: add a page to showcase the local installation script #16122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 15, 2025
Prev Previous commit
Next Next commit
🧹
  • Loading branch information
aslilac committed Jan 11, 2025
commit edd2cf3067d42a24209b681fc2d95c9b592ba464
6 changes: 3 additions & 3 deletions site/static/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ main() {
if [ "${RSH_ARGS-}" ]; then
RSH="${RSH-ssh}"
echoh "Installing remotely with $RSH $RSH_ARGS"
curl -fsSL {{ .Origin }}/install.sh | prefix "$RSH_ARGS" "$RSH" "$RSH_ARGS" sh -s -- "$ALL_FLAGS"
curl -fsSL "{{ .Origin }}/install.sh" | prefix "$RSH_ARGS" "$RSH" "$RSH_ARGS" sh -s -- "$ALL_FLAGS"
return
fi

Expand All @@ -208,7 +208,7 @@ main() {
echoh
fi

if [ ! has_standalone ]; then
if ! has_standalone; then
echoerr "There is no binary for $OS-$ARCH"
exit 1
fi
Expand Down Expand Up @@ -306,7 +306,7 @@ has_standalone() {
amd64) return 0 ;;
arm64) return 0 ;;
armv7)
[ "$(distro)" == "linux" ]
[ "$(distro)" = "linux" ]
return
;;
*) return 1 ;;
Expand Down
Loading