Update wanForProduction.sh
Browse files- wanForProduction.sh +4 -1
wanForProduction.sh
CHANGED
|
@@ -194,7 +194,10 @@ download_hf() {
|
|
| 194 |
|
| 195 |
if [[ "$success" == true ]]; then
|
| 196 |
local downloaded
|
| 197 |
-
downloaded="$(find "$temp_dir" -
|
|
|
|
|
|
|
|
|
|
| 198 |
if [[ -n "$downloaded" ]]; then
|
| 199 |
mv "$downloaded" "$target_dir/$filename"
|
| 200 |
rm -rf "$temp_dir"
|
|
|
|
| 194 |
|
| 195 |
if [[ "$success" == true ]]; then
|
| 196 |
local downloaded
|
| 197 |
+
downloaded="$(find "$temp_dir" -type f -name "$filename" -print -quit)"
|
| 198 |
+
if [[ -z "$downloaded" ]]; then
|
| 199 |
+
downloaded="$(find "$temp_dir" -type f -print -quit)"
|
| 200 |
+
fi
|
| 201 |
if [[ -n "$downloaded" ]]; then
|
| 202 |
mv "$downloaded" "$target_dir/$filename"
|
| 203 |
rm -rf "$temp_dir"
|