Changeset 24610

Show
Ignore:
Timestamp:
03/27/08 17:11:04 (8 months ago)
Author:
bonefish
Message:

Quote the image path to deal gracefully with spaces and the like.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/build/scripts/build_haiku_image

    r24586 r24610  
    9696                ddFlags=                 
    9797                if [ $isVMwareImage ]; then 
    98                         rm -f $imagePath 
    99                         $vmdkheader -h 64k -i${imageSize}M $imagePath || exit 1 
     98                        rm -f "$imagePath" 
     99                        $vmdkheader -h 64k -i${imageSize}M "$imagePath" || exit 1 
    100100                        ddFlags="conv=notrunc oflag=append" 
    101101                        dontClearImage= 
    102102                fi 
    103103 
    104                 if [ ! -e $imagePath -o ! "$dontClearImage" ]; then 
    105                         dd if=/dev/zero of=$imagePath bs=1048576 count=$imageSize $ddFlags 
     104                if [ ! -e "$imagePath" -o ! "$dontClearImage" ]; then 
     105                        dd if=/dev/zero of="$imagePath" bs=1048576 count=$imageSize $ddFlags 
    106106                fi 
    107                 $bfsShell --initialize $imageOffsetFlags $imagePath Haiku "block_size 2048" || exit 1 
    108                 $makebootable $imageOffsetFlags $imagePath 
     107                $bfsShell --initialize $imageOffsetFlags "$imagePath" Haiku \ 
     108                        "block_size 2048" || exit 1 
     109                $makebootable $imageOffsetFlags "$imagePath" 
    109110        fi 
    110         $bfsShell -n $imageOffsetFlags $imagePath > /dev/null & 
     111        $bfsShell -n $imageOffsetFlags "$imagePath" > /dev/null & 
    111112        sleep 1 
    112113        # bail out, if mounting fails