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 build.sh to run dependencies_check prior to using curl. #299

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

rkubes
Copy link
Contributor

@rkubes rkubes commented Jun 28, 2019

If ${APT_PROXY} is set, then the build script uses curl to see if it can connect to it.

Currently, if curl is not installed, then the script bombs out such as:

./build.sh: line 206: curl: command not found
Could not reach APT_PROXY server: http://localhost:3142/

Of course, the reason the server couldn't be reached is because curl isn't installed - not due to any network issue.

This pull request simply moves the dependencies_check call prior to the use of curl. This way if curl is not installed, then the script exits gracefully with the instructions to install curl.

I believe this is a low priority fix. For most users, this will be a cosmetic change, since they'd be able to interpret the error sequence anyway.

@XECDesign
Copy link
Member

Thanks

@XECDesign XECDesign merged commit 4ca539c into RPi-Distro:master Jul 1, 2019
fuji246 pushed a commit to lomorage/pi-gen that referenced this pull request Sep 17, 2019
alexgg pushed a commit to balena-os/pi-gen that referenced this pull request Jul 12, 2021
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.

2 participants