summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrescue/restore-image.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index 61cda588a..32e1cc178 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -248,9 +248,15 @@ function write_image()
image=$(cat $images_dir/list | cut -d ',' -f 3)
extension=$(echo $image | cut -d '.' -f 3)
case $extension in
- gz) uncomp=zcat ;;
- bz2) uncomp=bzcat ;;
- *) uncomp=cat ;;
+ gz)
+ uncomp=zcat
+ ;;
+ bz2)
+ uncomp=bzcat
+ ;;
+ *)
+ uncomp=cat
+ ;;
esac
skipstart=/bin/true