From ad57b2f63ab791d4296a220bb29b5a7a44476370 Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Fri, 25 Mar 2022 12:56:54 +0700 Subject: [PATCH] change argument handling --- build.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 696e053..485f0c9 100755 --- a/build.sh +++ b/build.sh @@ -41,10 +41,7 @@ git clone https://github.com/azur1s/hazure.git ~/.cache/hazure/build/ cd ~/.cache/hazure/build/ -# Remove the progress bar -CARGO_TERM_PROGRESS_WHEN=never - -if [ $1 = "d" ]; then +if [[ $1 == *"d"* ]]; then log "Building in debug..." cargo build rm ~/bin/hazure -f @@ -56,8 +53,6 @@ else mv ~/.cache/hazure/build/target/release/hazure ~/bin/hazure fi -unset CARGO_TERM_PROGRESS_WHEN - log "Build done. Cleaning up..." rm -rf ~/.cache/hazure/build/