aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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