Skip to content

Commit 3005d56

Browse files
authored
chore: improve message (#308)
1 parent b5ae47c commit 3005d56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ check_bin_lib() {
6666
echo "---------------------- [LIBRARY BINARY FOUND] ----------------------"
6767
echo "The library was found at <${LIBPRQLR_PATH}>. No need to build it."
6868
echo ""
69-
echo "Note: rustc version: $(rustc -V || echo 'Not found')"
69+
echo "Note: rustc version: $(command -v rustc >/dev/null && rustc -V || echo 'Not found')"
7070
echo "--------------------------------------------------------------------"
7171
echo ""
7272
sed -e "s|@RUST_TARGET@||" src/Makevars.in >src/Makevars
@@ -87,7 +87,7 @@ check_bin_lib() {
8787
echo "but was found at <${LIBPRQLR_DEFAULT_PATH}>."
8888
echo "No need to build it."
8989
echo ""
90-
echo "Note: rustc version: $(rustc -V || echo 'Not found')"
90+
echo "Note: rustc version: $(command -v rustc >/dev/null && rustc -V || echo 'Not found')"
9191
echo "--------------------------------------------------------------------"
9292
echo ""
9393
sed -e "s|@RUST_TARGET@||" src/Makevars.in >src/Makevars

0 commit comments

Comments
 (0)