scripts : fix check for wfile
This commit is contained in:
parent
fb75fc04e1
commit
784bad6379
1 changed files with 3 additions and 1 deletions
|
@ -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]}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue