Fix escaping dollar sign in templpates
@@ -71,14 +71,14 @@ storage:
| grep -vE "^$${osdisk} " \
| awk '{x=$1 " " x;} END{print x}'
)
- local count=$(echo "$disks" | wc -w)
+ local count=$(echo "$$disks" | wc -w)
# Exit if we don't have any disks to create an array
- [ $count -lt 1 ] && return 0
+ [ $$count -lt 1 ] && return 0
# Create, format and mount array.
local extra_opts=""
- if [ $count -lt 2 ]; then
+ if [ $$count -lt 2 ]; then
# Force array creation even with one disk
extra_opts="--force"
fi
