File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ fix_nvidia_secure_boot() {
390390 fi
391391 done
392392 if [[ -z " $sign_file " ]]; then
393- sign_file=$( find /usr/src /usr/lib -name sign-file -executable 2> /dev/null | head -1 )
393+ sign_file=$( find /usr/src /usr/lib -name sign-file -executable -print -quit 2> /dev/null)
394394 fi
395395 if [[ -z " $sign_file " ]]; then
396396 ai_bad " Cannot find kernel sign-file tool."
Original file line number Diff line number Diff line change 609609 fi
610610
611611 # Find llama-server binary (may be in a subdirectory)
612- FOUND_BIN=$( find " $TEMP_EXTRACT " -name " llama-server" -type f | head -1 )
612+ FOUND_BIN=$( find " $TEMP_EXTRACT " -name " llama-server" -type f -print -quit )
613613 if [[ -n " $FOUND_BIN " ]]; then
614614 cp " $FOUND_BIN " " $LLAMA_SERVER_BIN "
615615 chmod +x " $LLAMA_SERVER_BIN "
You can’t perform that action at this time.
0 commit comments