mirror of
https://github.com/papers-we-love/papers-we-love.git
synced 2024-10-27 20:34:20 +00:00
Added support for specifying which directories you want to download.
This commit is contained in:
parent
86002537db
commit
50a8173718
@ -24,6 +24,14 @@ download_for_directory() {
|
||||
echo "$1 done."
|
||||
}
|
||||
|
||||
BASEDIR="$(dirname $0)/.."
|
||||
download_for_directory $BASEDIR
|
||||
if [ "$#" -ne 1 ]; then
|
||||
BASEDIR="$(dirname $0)/.."
|
||||
download_for_directory $BASEDIR
|
||||
else
|
||||
for dir in "$@"
|
||||
do
|
||||
download_for_directory $dir
|
||||
done
|
||||
fi
|
||||
|
||||
wait
|
||||
|
Loading…
Reference in New Issue
Block a user