better error checking for install_tools.nims script
This commit is contained in:
parent
08913db924
commit
c96295b380
1 changed files with 11 additions and 8 deletions
|
|
@ -3,6 +3,9 @@ import ospaths
|
||||||
|
|
||||||
mode = ScriptMode.Verbose
|
mode = ScriptMode.Verbose
|
||||||
|
|
||||||
|
if not dirExists"dist/nimble":
|
||||||
|
echo "[Error] This script only works for the tarball."
|
||||||
|
else:
|
||||||
let nimbleExe = "./bin/nimble".toExe
|
let nimbleExe = "./bin/nimble".toExe
|
||||||
selfExec "c --noNimblePath -p:compiler -o:" & nimbleExe &
|
selfExec "c --noNimblePath -p:compiler -o:" & nimbleExe &
|
||||||
" dist/nimble/src/nimble.nim"
|
" dist/nimble/src/nimble.nim"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue