We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb71ad commit b7a2828Copy full SHA for b7a2828
packt.sh
@@ -10,7 +10,8 @@ function log {
10
}
11
12
function getBook {
13
- curl -s -L --retry $rtry -A "$agent" -b "$cookie" -c "$cookie" "https://www.packtpub.com/ebook_download/$book/$1" > "$dldir/$title.$1"
+ mkdir -p "$dldir/$title"
14
+ curl -s -L --retry $rtry -A "$agent" -b "$cookie" -c "$cookie" "https://www.packtpub.com/ebook_download/$book/$1" > "$dldir/$title/$title.$1"
15
cex=$?; test "$cex" -ne "0" && { log "curl exit error code: $cex"; exit; }
16
log "$1 downloaded"
17
0 commit comments