summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-05-27 12:00:15 +0000
committerOlivier Blin <oblin@mandriva.com>2009-05-27 12:00:15 +0000
commitc628b543c7ae3939afdbcd3e2c11039b73cf7f9d (patch)
tree951f692d9103f157c31ea98d7e155128d7d219f3 /rescue
parentc18bc02de076ed77ca8cbd27d30d11f79d6870ed (diff)
downloaddrakx-backup-do-not-use-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar
drakx-backup-do-not-use-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar.gz
drakx-backup-do-not-use-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar.bz2
drakx-backup-do-not-use-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.tar.xz
drakx-backup-do-not-use-c628b543c7ae3939afdbcd3e2c11039b73cf7f9d.zip
fix guessing extension when filename contains a dot
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/restore-image.sh2
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)