summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-12-08 21:00:30 +0800
committer魏曹先生 <1992414357@qq.com>2025-12-08 21:00:30 +0800
commit45ab6b03fd5e5140e0f2df4c6834d219c94ac2b6 (patch)
tree981c0605e121a71b48924bc6c53c90d8eb29f108
parenta570d168d145f44ac44b9a2c60b7a089dad65f87 (diff)
Make export script only run exporter after successful build
-rwxr-xr-xexport.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/export.sh b/export.sh
index 5c3cbc1..5428107 100755
--- a/export.sh
+++ b/export.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Build
-cargo build --workspace --release
-
-# Export
-cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter
+if cargo build --workspace --release; then
+ # Export
+ cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter
+fi