From 3005d56bf1acd6fa7329e8f9a56d912aa77725fe Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Tue, 17 Sep 2024 07:31:39 +0900 Subject: [PATCH] chore: improve message (#308) --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2a70527..1db5f4c 100755 --- a/configure +++ b/configure @@ -66,7 +66,7 @@ check_bin_lib() { echo "---------------------- [LIBRARY BINARY FOUND] ----------------------" echo "The library was found at <${LIBPRQLR_PATH}>. No need to build it." echo "" - echo "Note: rustc version: $(rustc -V || echo 'Not found')" + echo "Note: rustc version: $(command -v rustc >/dev/null && rustc -V || echo 'Not found')" echo "--------------------------------------------------------------------" echo "" sed -e "s|@RUST_TARGET@||" src/Makevars.in >src/Makevars @@ -87,7 +87,7 @@ check_bin_lib() { echo "but was found at <${LIBPRQLR_DEFAULT_PATH}>." echo "No need to build it." echo "" - echo "Note: rustc version: $(rustc -V || echo 'Not found')" + echo "Note: rustc version: $(command -v rustc >/dev/null && rustc -V || echo 'Not found')" echo "--------------------------------------------------------------------" echo "" sed -e "s|@RUST_TARGET@||" src/Makevars.in >src/Makevars