Partitions are no regular files. The check for mere existence shall

suffice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-10-01 17:36:52 +00:00
parent f515ed5f77
commit 21873fffb3

View File

@ -84,7 +84,7 @@ if [ $isImage ]; then
echo
if [ ! $updateOnly ]; then
echo "Creating image ..."
if [ ! -f $imagePath -o ! "$dontClearImage" ]; then
if [ ! -e $imagePath -o ! "$dontClearImage" ]; then
dd if=/dev/zero of=$imagePath bs=1048576 count=$imageSize
fi
$bfsShell --initialize $imagePath Haiku