@@ -60,7 +60,7 @@ cargo --version || print_status WARN "cargo not found"
6060print_status INFO " Go:"
6161go version || print_status WARN " go not found"
6262print_status INFO " C Compiler:"
63- gcc --version 2>&1 | head -1 || print_status WARN " gcc not found"
63+ ( gcc --version 2>&1 || true) | head -1 || print_status WARN " gcc not found"
6464print_status INFO " pkg-config:"
6565pkg-config --version 2>&1 || print_status WARN " pkg-config not found"
6666echo " "
@@ -138,7 +138,7 @@ if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; t
138138 if [ -d " C:\\ msys64" ]; then
139139 print_status OK " MSYS2 found at C:\\ msys64"
140140 echo " MinGW64 bin:"
141- if find " C:\\ msys64\\ mingw64\\ bin" -maxdepth 1 -type f 2> /dev/null | head -5 | xargs -r ls -lh; then
141+ if find " C:\\ msys64\\ mingw64\\ bin" -maxdepth 1 -type f 2> /dev/null | head -5 | xargs -r ls -lh 2> /dev/null ; then
142142 :
143143 else
144144 print_status WARN " Could not list MSYS2 bins"
@@ -181,7 +181,7 @@ print_status INFO "FFI source directory: $REPO_ROOT/crates/kreuzberg-ffi"
181181if [ -d " $REPO_ROOT /crates/kreuzberg-ffi" ]; then
182182 print_status OK " FFI directory exists"
183183 print_status INFO " FFI Cargo.toml:"
184- grep ' ^name\|^version' " $REPO_ROOT /crates/kreuzberg-ffi/Cargo.toml" | head -2 | sed ' s/^/ /'
184+ grep ' ^name\|^version' " $REPO_ROOT /crates/kreuzberg-ffi/Cargo.toml" | head -2 | sed ' s/^/ /' || true
185185fi
186186
187187print_status INFO " FFI header file: $REPO_ROOT /crates/kreuzberg-ffi/kreuzberg.h"
213213
214214if [ -d " $REPO_ROOT /packages/go/v4" ]; then
215215 print_status INFO " Go packages in v4:"
216- find " $REPO_ROOT /packages/go/v4" -maxdepth 1 -type f -name " *.go" | head -5 | sed ' s/^/ /'
216+ find " $REPO_ROOT /packages/go/v4" -maxdepth 1 -type f -name " *.go" | head -5 | sed ' s/^/ /' || true
217217fi
218218echo " "
219219
220220print_section " Dependency Status"
221221print_status INFO " Checking PDFium..."
222222if [ -n " ${KREUZBERG_PDFIUM_PREBUILT:- } " ] && [ -d " $KREUZBERG_PDFIUM_PREBUILT " ]; then
223223 print_status OK " PDFium found at $KREUZBERG_PDFIUM_PREBUILT "
224- if find " $KREUZBERG_PDFIUM_PREBUILT /lib" -maxdepth 1 -type f 2> /dev/null | head -3 | xargs -r ls -lh; then
224+ if find " $KREUZBERG_PDFIUM_PREBUILT /lib" -maxdepth 1 -type f 2> /dev/null | head -3 | xargs -r ls -lh 2> /dev/null ; then
225225 :
226226 else
227227 echo " Could not list PDFium libs"
233233print_status INFO " Checking ONNX Runtime..."
234234if [ -n " ${ORT_LIB_LOCATION:- } " ] && [ -d " $ORT_LIB_LOCATION " ]; then
235235 print_status OK " ONNX Runtime found at $ORT_LIB_LOCATION "
236- if find " $ORT_LIB_LOCATION " -maxdepth 1 -type f 2> /dev/null | head -3 | xargs -r ls -lh; then
236+ if find " $ORT_LIB_LOCATION " -maxdepth 1 -type f 2> /dev/null | head -3 | xargs -r ls -lh 2> /dev/null ; then
237237 :
238238 else
239239 echo " Could not list ORT libs"
0 commit comments