Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dziallas <sebastian@when.com>2009-11-21 16:17:28 (GMT)
committer Sebastian Dziallas <sebastian@when.com>2009-11-21 16:17:28 (GMT)
commitabf85823361397824c9477c76e99954a4f9da3f2 (patch)
treeba25abfa112d09fae9fe354982ad13cce235cb01
parentf87eff3f7865cf5e861a8004fe998bcbc55cb2a0 (diff)
let's try to use wget to download ebooks
-rw-r--r--soas-aslo-and-content.ks8
1 files changed, 2 insertions, 6 deletions
diff --git a/soas-aslo-and-content.ks b/soas-aslo-and-content.ks
index a739653..9b3dd6e 100644
--- a/soas-aslo-and-content.ks
+++ b/soas-aslo-and-content.ks
@@ -105,12 +105,8 @@ EPUB="148/burnett-secret-garden-illustrations" # The Secret Garden
for epub in $EPUB ; do
url=http://www.epubbooks.com/book/$epub.epub
- remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $url | tail -1))
- bundle=$CACHE_DIR/$remote_file
- if [ ! -f $bundle ] ; then
- curl -s -4 -L $url > $bundle
- fi
- cp -p $bundle $BUNDLES_DIR
+ wget $url -P $CACHE_DIR
+ cp -p $CACHE_DIR/*.epub $BUNDLES_DIR
done
# get the script to install the activities