aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-26 17:01:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-26 17:01:00 -0300
commit3364635c62966108fd4180d81620885ff9e65993 (patch)
tree9fa1371be6633225ded62996637dab11951c629f
parent5b9fcb6ddabc2fb4ae001fcb309fb835d057d5e4 (diff)
downloadscripts-3364635c62966108fd4180d81620885ff9e65993.tar.gz
scripts-3364635c62966108fd4180d81620885ff9e65993.tar.bz2
Fix filenames for jigdo and zsync
-rwxr-xr-xdebian-dl6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian-dl b/debian-dl
index 9dd94bf..0dc6a7e 100755
--- a/debian-dl
+++ b/debian-dl
@@ -42,6 +42,9 @@ if echo $FILENAME | grep -qe '.jigdo$'; then
# Get the image using jigdo
jigdo-lite $URL
+
+ # Fix filename
+ FILENAME="`basename $FILENAME .jigdo`.iso"
elif echo $FILENAME | grep -qe '.zsync$'; then
# Check for zsync
if ! which zsync &> /dev/null; then
@@ -51,6 +54,9 @@ elif echo $FILENAME | grep -qe '.zsync$'; then
# Get the image using zsync
zsync $URL
+
+ # Fix filename
+ FILENAME="`basename $FILENAME .zsync`.iso"
else
# Check for wget
if ! which wget &> /dev/null; then