mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
change argument handling
This commit is contained in:
parent
222cd44bb3
commit
ad57b2f63a
7
build.sh
7
build.sh
|
@ -41,10 +41,7 @@ git clone https://github.com/azur1s/hazure.git ~/.cache/hazure/build/
|
||||||
|
|
||||||
cd ~/.cache/hazure/build/
|
cd ~/.cache/hazure/build/
|
||||||
|
|
||||||
# Remove the progress bar
|
if [[ $1 == *"d"* ]]; then
|
||||||
CARGO_TERM_PROGRESS_WHEN=never
|
|
||||||
|
|
||||||
if [ $1 = "d" ]; then
|
|
||||||
log "Building in debug..."
|
log "Building in debug..."
|
||||||
cargo build
|
cargo build
|
||||||
rm ~/bin/hazure -f
|
rm ~/bin/hazure -f
|
||||||
|
@ -56,8 +53,6 @@ else
|
||||||
mv ~/.cache/hazure/build/target/release/hazure ~/bin/hazure
|
mv ~/.cache/hazure/build/target/release/hazure ~/bin/hazure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset CARGO_TERM_PROGRESS_WHEN
|
|
||||||
|
|
||||||
log "Build done. Cleaning up..."
|
log "Build done. Cleaning up..."
|
||||||
|
|
||||||
rm -rf ~/.cache/hazure/build/
|
rm -rf ~/.cache/hazure/build/
|
||||||
|
|
Loading…
Reference in a new issue