Skip to content

Commit cfc1e24

Browse files
authored
fix: dlmodels.sh exits after download single file (RVC-Project#2175)
1 parent b405aed commit cfc1e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/dlmodels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ check_file_pretrained() {
3434
echo failed. starting download from huggingface.
3535
if command -v aria2c > /dev/null 2>&1; then
3636
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$1"/"$2" -d ./assets/"$1" -o "$2"
37-
[ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" && exit 1
37+
[ -f "./assets/""$1""/""$2""" ] && echo "download successful." || { echo "please try again!" && exit 1; }
3838
else
3939
echo "aria2c command not found. Please install aria2c and try again."
4040
exit 1
@@ -50,7 +50,7 @@ check_file_special() {
5050
echo failed. starting download from huggingface.
5151
if command -v aria2c > /dev/null 2>&1; then
5252
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$2" -d ./assets/"$1" -o "$2"
53-
[ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" && exit 1
53+
[ -f "./assets/""$1""/""$2""" ] && echo "download successful." || { echo "please try again!" && exit 1; }
5454
else
5555
echo "aria2c command not found. Please install aria2c and try again."
5656
exit 1

0 commit comments

Comments
 (0)