Commit a9b099f7 authored by Moul's avatar Moul

[build] Change neon/build.sh script

Move 'then' keywords after the condition for better readability
Remove useless directory change at the end of the script
Move "cd neon" close to the related build calls
parent 53af8359
#!/bin/sh
cd neon
if [ -z "${DUNITER_FAST_BUILD}" ]
then
if [ -e "${HOME}/.cargo/bin/rustup" ]
then
if [ -z "${DUNITER_FAST_BUILD}" ]; then
if [ -e "${HOME}/.cargo/bin/rustup" ]; then
rustup update stable
else
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
......@@ -19,11 +15,10 @@ else
echo "WARNING: you have disabled the automatic update of Rust, remember to update Rust regularly with command \"rustup update\"."
fi
if [ "${NEON_BUILD_RELEASE}" = "true" ] || [ "${NODE_ENV}" = "production" ]
then
neon build --release
cd neon
if [ "${NEON_BUILD_RELEASE}" = "true" ] || [ "${NODE_ENV}" = "production" ]; then
neon build --release
else
neon build
fi
cd ..
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment