Skip to content

Commit

Permalink
fix: Use uname -o to detect Android in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Feb 17, 2024
1 parent dba574d commit d14bdd5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
9 changes: 4 additions & 5 deletions assets/scripts/install-local-bin.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions assets/scripts/install.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions internal/cmds/generate-install.sh/install.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ get_goos() {
case "${os}" in
cygwin_nt*) goos="windows" ;;
linux)
if is_command termux-info; then
goos=android
else
goos=linux
fi
case "$(uname -o | tr '[:upper:]' '[:lower:]')" in
android) goos="android" ;;
*) goos="linux" ;;
esac
;;
mingw*) goos="windows" ;;
msys_nt*) goos="windows" ;;
Expand Down

0 comments on commit d14bdd5

Please sign in to comment.