Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Don't exit build script if #cores evaluates to zero #300

Merged
merged 1 commit into from
Jun 9, 2017

Conversation

damonbarry
Copy link
Member

The Linux build script fails silently if the number of cores and the virtual memory on the host machine cause the CORES2 variable to evaluate to zero. This is because the unix expr command returns a non-zero error code if the result is zero, even though zero is a legitimate result. I fixed it by discarding the status code; we only care about the expression result.

@az-iot-builder-01 az-iot-builder-01 merged commit 0903945 into Azure:master Jun 9, 2017
@damonbarry damonbarry deleted the script-fix branch December 12, 2017 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants