diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-05-27 12:00:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-05-27 12:00:15 +0000 |
commit | c628b543c7ae3939afdbcd3e2c11039b73cf7f9d (patch) | |
tree | 951f692d9103f157c31ea98d7e155128d7d219f3 | |
parent | c18bc02de076ed77ca8cbd27d30d11f79d6870ed (diff) | |
download | drakx-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar drakx-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar.gz drakx-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar.bz2 drakx-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar.xz drakx-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.zip |
fix guessing extension when filename contains a dot
-rwxr-xr-x | rescue/restore-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index ed7d1acca..261f41f91 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -246,7 +246,7 @@ function write_image() fi image=$(cat $images_dir/list | cut -d ',' -f 3) - extension=$(echo $image | cut -d '.' -f 3) + extension=${image/*./} imagesize=$(ls -l $images_dir/$image | awk '{ print $5 }') case $extension in gz) |