Skip to content

Set installer tmp path to env var #2730

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 1 commit into from
Oct 15, 2024
Merged

Conversation

lucasjrt
Copy link
Contributor

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

This is an improvement in the install.sh script to support more platforms. For example, Termux is an Android terminal emulator which doesn't follow conventional UNIX file system, which means /tmp folder does not exist. Although, $TMPDIR is a variable that can be used to reference the /tmp equivalent in Termux.

What is the current behavior?

The current behavior of the install.sh script is that it crashes when running from Termux, as the installer tries to write the installation files in a folder that doesn't exist (/tmp).

What is the new behavior?

A new variable $TEMPDIR is defined based on some default variables that holds those paths, and if none of those are found, it defaults to previous /tmp.

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

Android environments have the potential to be a development environment, so it would be nice that tools like arduino-cli could support it.

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2024

CLA assistant check
All committers have signed the CLA.

@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Oct 12, 2024
@alessio-perugini alessio-perugini merged commit 812e621 into arduino:master Oct 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants