added missing $ to autoprepare

This commit is contained in:
Tobias Powalowski 2010-05-25 15:54:01 +02:00
parent c88772fde1
commit fcfcb55a3d

View file

@ -1725,7 +1725,7 @@ EOF
for fsspec in $FSSPECS; do for fsspec in $FSSPECS; do
mountpoint=$(echo $fsspec | tr -d ' ' | cut -f1 -d:) mountpoint=$(echo $fsspec | tr -d ' ' | cut -f1 -d:)
fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:) fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:)
labelname=(echo $fsspec | tr -d ' ' | cut -f5 -d:) labelname=$(echo $fsspec | tr -d ' ' | cut -f5 -d:)
if echo $mountpoint | tr -d ' ' | grep '^/$' 2>&1 >/dev/null; then if echo $mountpoint | tr -d ' ' | grep '^/$' 2>&1 >/dev/null; then
_mkfs yes ${DEVICE}${part} "$fstype" "$DESTDIR" "$mountpoint" "$labelname" || return 1 _mkfs yes ${DEVICE}${part} "$fstype" "$DESTDIR" "$mountpoint" "$labelname" || return 1
fi fi
@ -1738,7 +1738,7 @@ EOF
for fsspec in $FSSPECS; do for fsspec in $FSSPECS; do
mountpoint=$(echo $fsspec | tr -d ' ' | cut -f1 -d:) mountpoint=$(echo $fsspec | tr -d ' ' | cut -f1 -d:)
fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:) fstype=$(echo $fsspec | tr -d ' ' | cut -f3 -d:)
labelname=(echo $fsspec | tr -d ' ' | cut -f5 -d:) labelname=$(echo $fsspec | tr -d ' ' | cut -f5 -d:)
if [ $(echo $mountpoint | tr -d ' ' | grep '^/$' | wc -l) -eq 0 ]; then if [ $(echo $mountpoint | tr -d ' ' | grep '^/$' | wc -l) -eq 0 ]; then
_mkfs yes ${DEVICE}${part} "$fstype" "$DESTDIR" "$mountpoint" "$labelname" || return 1 _mkfs yes ${DEVICE}${part} "$fstype" "$DESTDIR" "$mountpoint" "$labelname" || return 1
fi fi