Skip to content

Commit bd3b425

Browse files
committed
update build script
1 parent cc301ed commit bd3b425

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Set the build directory and run the release build
44
cargo build --release
5+
if [ $? -ne 0 ]; then
6+
echo "Build failed!"
7+
exit 1 # Exit with a non-zero code to indicate failure
8+
fi
59

610
# Get the executable path (replace 'your_project_name' with your actual project name)
711
executable_path="target/release/ndate"
@@ -18,3 +22,4 @@ if [ -f "$executable_path" ]; then
1822
else
1923
echo "Error: Executable not found at $executable_path"
2024
fi
25+
sleep 2

0 commit comments

Comments
 (0)