Add double quote for ease-of-read

This commit is contained in:
Suikan 2021-07-04 15:18:14 +09:00
parent c504de3d9b
commit 91db393dd2

View file

@ -72,7 +72,7 @@ function confirmation(){
# For sure ask to erase. # For sure ask to erase.
if [ "${ERASEALL}" -ne 0 ] ; then if [ "${ERASEALL}" -ne 0 ] ; then
echo "Are you sure you want to erase entire ${DEV}? [Y/N]" echo "Are you sure you want to erase entire \"${DEV}\"? [Y/N]"
read -r YESNO read -r YESNO
if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then
cat <<-HEREDOC cat <<-HEREDOC
@ -86,7 +86,7 @@ function confirmation(){
# For sure ask to overwrite. # For sure ask to overwrite.
if [ "${OVERWRITEINSTALL}" -ne 0 ] ; then if [ "${OVERWRITEINSTALL}" -ne 0 ] ; then
echo "Are you sure you want to overwrite ${LVROOTNAME} in ${VGNAME}? [Y/N]" echo "Are you sure you want to overwrite \"${LVROOTNAME}\" in \"${VGNAME}\"? [Y/N]"
read -r YESNO read -r YESNO
if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then
cat <<-HEREDOC cat <<-HEREDOC