From 327bdb675b61d458160e9a056ebe8bac04ec4ad6 Mon Sep 17 00:00:00 2001 From: Gonzalo Bella Date: Fri, 26 Nov 2021 16:46:09 +0000 Subject: [PATCH] Use relative paths in scripts/download.sh If there is another folder with the same name in your path when running the script, it will enter that folder and recursively try to download all the files. It the folder is big enough, it can hang the computer. --- scripts/download.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download.sh b/scripts/download.sh index d5139d4..4d6d42c 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -11,7 +11,7 @@ download_for_directory() { for f in *; do if [[ -d ${f} ]]; then - download_for_directory ${f} & + download_for_directory "./${f}" & fi done