mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix wc -l in raid creation
This commit is contained in:
parent
b5529fa084
commit
58a8ab73ec
1 changed files with 2 additions and 2 deletions
|
@ -822,8 +822,8 @@ _raid()
|
||||||
# create raid device
|
# create raid device
|
||||||
_createraid()
|
_createraid()
|
||||||
{
|
{
|
||||||
DEVICES="$(echo -n $(cat /tmp/.raid))"
|
DEVICES="$(echo -n "$(cat /tmp/.raid)")"
|
||||||
SPARES="$(echo -n $(cat /tmp/.raid-spare))"
|
SPARES="$(echo -n "$(cat /tmp/.raid-spare)")"
|
||||||
# combine both if spares are available, spares at the end!
|
# combine both if spares are available, spares at the end!
|
||||||
[[ -n ${SPARES} ]] && DEVICES="${DEVICES} ${SPARES}"
|
[[ -n ${SPARES} ]] && DEVICES="${DEVICES} ${SPARES}"
|
||||||
# get number of devices
|
# get number of devices
|
||||||
|
|
Loading…
Reference in a new issue