scripts : fix check for wfile

This commit is contained in:
Georgi Gerganov 2024-02-02 14:23:12 +02:00
parent fb75fc04e1
commit 784bad6379
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -274,8 +274,10 @@ for file in $model_files; do
printf " %2d) %s %s\n" $iw "$have" "$file"
done
wfile="${wfiles[$wtype]}"
# ask for weights type until provided and available
while [[ -z "$wtype" ]]; do
while [[ -z "$wfile" ]]; do
printf "\n"
read -p "[+] Select weight type: " wtype
wfile="${wfiles[$wtype]}"