mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
added missing $ to autoprepare
This commit is contained in:
parent
c88772fde1
commit
fcfcb55a3d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue