diff options
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 12 |
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 |