summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
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)