Skip to content
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

Fix connection check and re-enabled i386 and armv6l support #11

Closed
wants to merge 1 commit into from

Conversation

MichaIng
Copy link

@MichaIng MichaIng commented Mar 22, 2020

  • Re-enabled i386 and armv6l support by searching the latest major version that was compiled for those architecture: v11.x for armv6l and v9.x for i386
  • Use curl "-f" option to prevent it from storing 40x error pages in variable but exiting with error code instead: https://linux.die.net/man/1/curl
  • Force HTTPS connection to nodejs.org
  • Coding consistency:
    • Redirect all error messages to STDERR
    • Use single quotes around arguments with no variable calls, else double quotes
    • Use double braces for all bash conditionals
    • Do not assign a variable to another via echo + command substitution overhead
    • Use consistent if-then-else format

Fixes #9

Signed-off-by: MichaIng micha@dietpi.com

+ Re-enabled i386 and armv6l support by searching the latest major version that was compiled for those architecture: v11.x for armv6l and v9.x for i386
+ Use curl "-f" option to prevent it from storing 40x error pages in variable but exiting with error code instead: https://linux.die.net/man/1/curl
+ Force HTTPS connection to nodejs.org
+ Coding consistency: Redirect all error messages to STDOUT; Use single quotes around arguments with no variable calls, else double quotes; Use double braces for all bash conditionals; Do not assign a variable to another via echo + command substitution overhead; Use consistent if-then-else format

Signed-off-by: MichaIng <micha@dietpi.com>
@MichaIng
Copy link
Author

MichaIng commented Jul 5, 2020

@taaem
This also solves the issue that the internet check curl http://nodejs.org/dist/latest/ now always fails since nodejs.org implemented HTTPS redirect, so without -L, curl output is empty.

Any interest in further maintaining this script? Otherwise I'll start using and promoting my fork.

@MichaIng MichaIng changed the title Re-enabled i386 and armv6l support Fix connection check and re-enabled i386 and armv6l support Jul 5, 2020
MichaIng added a commit to MichaIng/DietPi that referenced this pull request Jul 5, 2020
+ DietPi-Software | Node.js: Use fixed own installer fork for now: taaem/nodejs-linux-installer#11
MichaIng added a commit to MichaIng/DietPi that referenced this pull request Jul 5, 2020
+ DietPi-Software | Node.js: Use fixed own installer fork for now: taaem/nodejs-linux-installer#11
@MichaIng MichaIng closed this Mar 30, 2022
@MichaIng MichaIng deleted the patch-1 branch March 30, 2022 23:11
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.

The new version of Node does not include a binary for arm6l
1 participant