fix wc -l in raid creation

This commit is contained in:
Tobias Powalowski 2022-01-26 17:56:17 +01:00
parent b5529fa084
commit 58a8ab73ec

View file

@ -822,8 +822,8 @@ _raid()
# create raid device
_createraid()
{
DEVICES="$(echo -n $(cat /tmp/.raid))"
SPARES="$(echo -n $(cat /tmp/.raid-spare))"
DEVICES="$(echo -n "$(cat /tmp/.raid)")"
SPARES="$(echo -n "$(cat /tmp/.raid-spare)")"
# combine both if spares are available, spares at the end!
[[ -n ${SPARES} ]] && DEVICES="${DEVICES} ${SPARES}"
# get number of devices