Style cleanup
- Indent 1 full tab where needed - Use $() for shell exec - Insert a space between '$(( ))' parens MFC After: 1 week X-MFC-With: r264907 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6dceb683a7
commit
ad22db2755
@ -47,8 +47,8 @@ rm ${1}/etc/fstab
|
||||
# division and to provide ample padding.
|
||||
#
|
||||
|
||||
filesize=`stat -f "%z" ${tempfile}`
|
||||
blocks=$(($filesize / ${BLOCKSIZE} + 520 ))
|
||||
filesize=$(stat -f "%z" ${tempfile})
|
||||
blocks=$(( ${filesize} / ${BLOCKSIZE} + 520 ))
|
||||
dd if=/dev/zero of=${2} bs=${BLOCKSIZE} count=${blocks}
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "creation of image file failed"
|
||||
|
@ -47,8 +47,8 @@ rm ${1}/etc/fstab
|
||||
# division and to provide ample padding.
|
||||
#
|
||||
|
||||
filesize=`stat -f "%z" ${tempfile}`
|
||||
blocks=$(($filesize / ${BLOCKSIZE} + 520 ))
|
||||
filesize=$(stat -f "%z" ${tempfile})
|
||||
blocks=$(( ${filesize} / ${BLOCKSIZE} + 520 ))
|
||||
dd if=/dev/zero of=${2} bs=${BLOCKSIZE} count=${blocks}
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "creation of image file failed"
|
||||
|
Loading…
Reference in New Issue
Block a user