panamax-rs / panamax

Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
Apache License 2.0
427 stars 45 forks source link

Set process exit code when sync fails #119

Closed roblabla closed 1 month ago

roblabla commented 8 months ago

If using panamax in a script, this is useful to catch problems.

This commit will catch the most eggregious problems like configuration problems, but download failures in panamax sync will still exit successfully. I'll need to look into making more changes to allow catching this.