-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhackspace-books-downloader.sh
More file actions
executable file
·32 lines (25 loc) · 1.06 KB
/
Copy pathhackspace-books-downloader.sh
File metadata and controls
executable file
·32 lines (25 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -o errexit
#set -o pipefail ## it's failing for line 82 + 86 in downloader
set -o nounset
IFS=$'\n\t'
# ------------------------------------------------------------------
# [Author] joergi - https://github.com/joergi/WireframeDownloader
# downloader for all Wireframe magzine issues and books
# based on Magpi Downloader: https://github.com/joergi/MagpiDownloader
# they are downloadable for free under https://wireframe.raspberrypi.org/issues
# or you can buy the paper issues under: https://store.rpipress.cc/collections/wireframe
# this script is under GNU GENERAL PUBLIC LICENSE 3
# ------------------------------------------------------------------
# VERSION=0.2.0
# USAGE="Usage: bash hackspace-books-downloader.sh [-f firstissue] [-l lastissue]"
OUTDIR=special-issues
if [ ! -d "$OUTDIR" ]; then
mkdir "$OUTDIR"
fi
file="special-editions.txt"
while IFS= read -r line
do
bash <(curl https://raw.githubusercontent.com/joergi/downloader/0.5.0/linux_mac/downloader.sh) "$line" "$OUTDIR"
done < "$file"
exit 0