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:
Glen Barber 2014-04-25 01:55:14 +00:00
parent 6dceb683a7
commit ad22db2755
2 changed files with 48 additions and 48 deletions

View File

@ -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"

View File

@ -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"