More spacing stuff

This commit is contained in:
Tim Kuehn
2017-02-16 20:56:04 -08:00
parent 8faba59d66
commit c7831e8aa6

View File

@@ -68,12 +68,12 @@ run_cargo() {
fi fi
if [ "$2" != "" ]; then if [ "$2" != "" ]; then
printf "${PREFIX} $VERB on $2... " printf "${PREFIX} $VERB on $2... "
if [ "$2" != "nightly" ]; then if [ "$2" != "nightly" ]; then
rustup run $2 cargo $1 &>/dev/null rustup run $2 cargo $1 &>/dev/null
else else
rustup run nightly cargo $1 --features unstable &>/dev/null rustup run nightly cargo $1 --features unstable &>/dev/null
rustup run nightly cargo $1 --features unstable,tls &>/dev/null rustup run nightly cargo $1 --features unstable,tls &>/dev/null
fi fi
else else
printf "${PREFIX} $VERB... " printf "${PREFIX} $VERB... "
cargo $1 &>/dev/null cargo $1 &>/dev/null
@@ -118,14 +118,14 @@ if [ "$?" == 0 ] && [ "${TARPC_USE_CURRENT_TOOLCHAIN}" == "" ]; then
# We still rely on some nightly stuff for tests # We still rely on some nightly stuff for tests
run_cargo test nightly run_cargo test nightly
else else
if [ "${TARPC_USE_CURRENT_TOOLCHAIN}" == "" ]; then if [ "${TARPC_USE_CURRENT_TOOLCHAIN}" == "" ]; then
printf "${YELLOW}NOT FOUND${NC}\n" printf "${YELLOW}NOT FOUND${NC}\n"
printf "${WARNING} Falling back to current toolchain: $(rustc -V)\n" printf "${WARNING} Falling back to current toolchain: $(rustc -V)\n"
else else
printf "${SUCCESS}\n" printf "${SUCCESS}\n"
fi fi
run_cargo build run_cargo build
run_cargo test run_cargo test
run_cargo bench run_cargo bench
fi fi