diff options
-rwxr-xr-x | debian-dl | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |