From 780d79d53ca19a1dcd6271d27a999e2348cf867a Mon Sep 17 00:00:00 2001 From: pato-pan <131620424+pato-pan@users.noreply.github.com> Date: Thu, 18 Jul 2024 01:07:37 -0400 Subject: [PATCH] fix: Update dlmodels.sh to not exit after every successful download. Why is this here? A mistake? Current behavior causes script to exit after every successful download, forcing you to rerun the script 19 times. This pull request will make all the downloads necessary by running the script once, by simply removing "&& exit 1" which was probably wrongfully placed there. --- tools/dlmodels.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dlmodels.sh b/tools/dlmodels.sh index 2848e51..a668218 100755 --- a/tools/dlmodels.sh +++ b/tools/dlmodels.sh @@ -34,7 +34,7 @@ check_file_pretrained() { echo failed. starting download from huggingface. if command -v aria2c > /dev/null 2>&1; then 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" - [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" && exit 1 + [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" else echo "aria2c command not found. Please install aria2c and try again." exit 1 @@ -50,7 +50,7 @@ check_file_special() { echo failed. starting download from huggingface. if command -v aria2c > /dev/null 2>&1; then 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" - [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" && exit 1 + [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" else echo "aria2c command not found. Please install aria2c and try again." exit 1