mirror of
https://github.com/papers-we-love/papers-we-love.git
synced 2026-03-02 03:40:31 +00:00
Use relative paths in scripts/download.sh (#632)
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. Co-authored-by: Gonzalo Bella <gonzalobella@gambitresearch.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user