Skip to content

fix: allow ARCH and VERSION env overrides in install script#350

Open
nianyush wants to merge 1 commit intomainfrom
fix/allow-env-override-arch-version
Open

fix: allow ARCH and VERSION env overrides in install script#350
nianyush wants to merge 1 commit intomainfrom
fix/allow-env-override-arch-version

Conversation

@nianyush
Copy link
Contributor

Summary

  • ARCH was unconditionally set from uname -m, ignoring any user-provided ARCH env var
  • VERSION was unconditionally set from PE_VERSION, ignoring any user-provided VERSION env var
  • Both now use ${VAR:-default} parameter expansion so user-supplied values take precedence

Test plan

  • Run install script without ARCH/VERSION set — should auto-detect as before
  • Run with ARCH=arm64 set — should use the provided value instead of uname -m
  • Run with VERSION=v1.0.0 set — should use the provided value instead of PE_VERSION

ARCH was unconditionally set from uname, and VERSION from PE_VERSION,
ignoring any user-provided environment variables. Use parameter expansion
defaults so user-supplied values take precedence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant