Skip to content

Commit

Permalink
compilation should fail if wrong nim_commit was specified (#101)
Browse files Browse the repository at this point in the history
Previously there was an error message, but then compilation went
on with another Nim version.

Signed-off-by: Csaba Kiraly <[email protected]>
  • Loading branch information
cskiraly authored Jan 23, 2025
1 parent 4c6ff07 commit 5f10509
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build_nim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ nim_needs_rebuilding() {
git remote add extra "${NIM_COMMIT_REPO}"
fi
git fetch --all --tags --quiet
git checkout -q "${NIM_COMMIT}"
git checkout -q "${NIM_COMMIT}" ||
{ echo "Error: wrong NIM_COMMIT specified:'${NIM_COMMIT}'"; exit 1; }
fi
# In case the local branch diverged and a fast-forward merge is not possible.
git fetch || true
Expand Down

0 comments on commit 5f10509

Please sign in to comment.