mirror of
https://github.com/papers-we-love/papers-we-love.git
synced 2025-06-13 12:54:28 +00:00
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.
This commit is contained in:
parent
20b552c908
commit
327bdb675b
@ -11,7 +11,7 @@ download_for_directory() {
|
|||||||
|
|
||||||
for f in *; do
|
for f in *; do
|
||||||
if [[ -d ${f} ]]; then
|
if [[ -d ${f} ]]; then
|
||||||
download_for_directory ${f} &
|
download_for_directory "./${f}" &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user