Commit 63a3904a authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a minor bash variable expansion error

It only affects the printing of an information string
parent 748282cb
......@@ -36,7 +36,7 @@ if [ ! -b "$SNF_IMAGE_DEV" ]; then
fi
if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ (net)|(open)bsd ]]; then
os=${SNF_IMAGE_PROPERTY_OSFAMILY^[bsd]}
os=${SNF_IMAGE_PROPERTY_OSFAMILY^^[bsd]}
warn "Partition resizing currently not supported for ${os^?}"
exit 0
fi
......
......@@ -46,7 +46,7 @@ if [ -n "$SNF_IMAGE_PROPERTY_DO_SYNC" ]; then
fi
if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ (net)|(open)bsd ]]; then
os=${SNF_IMAGE_PROPERTY_OSFAMILY^[bsd]}
os=${SNF_IMAGE_PROPERTY_OSFAMILY^^[bsd]}
warn "File sytem resizing currently not supported for ${os^?}"
exit 0
fi
......
......@@ -47,7 +47,7 @@ fi
if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" == *bsd ]]; then
if ! $DUMPFS_UFS "$rootdev" &> /dev/null; then
os=${SNF_IMAGE_PROPERTY_OSFAMILY^[bsd]}
os=${SNF_IMAGE_PROPERTY_OSFAMILY^^[bsd]}
log_error "For ${os^?} images only UFS root partitions are supported."
fi
ufstype="$(get_ufstype "$rootdev")"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment