replace sd with rg

This commit is contained in:
Tobias Powalowski 2024-06-28 10:13:41 +02:00
parent aed43c70ea
commit 6f25fc153e

View file

@ -565,7 +565,7 @@ _createpv()
echo "${_DEV}" >>/tmp/.pvs-create echo "${_DEV}" >>/tmp/.pvs-create
done done
# final step ask if everything is ok? # final step ask if everything is ok?
_dialog --yesno "Would you like to create physical volume on devices below?\n$(sd -p '$' '\n' /tmp/.pvs-create)" 0 0 && break _dialog --yesno "Would you like to create physical volume on devices below?\n$(rg '(.*$)' -r '$1\n' /tmp/.pvs-create)" 0 0 && break
done done
_DEV="$(echo -n "$(cat /tmp/.pvs-create)")" _DEV="$(echo -n "$(cat /tmp/.pvs-create)")"
#shellcheck disable=SC2028,SC2086 #shellcheck disable=SC2028,SC2086
@ -650,7 +650,7 @@ _createvg()
echo "${_PV}" >>/tmp/.pvs echo "${_PV}" >>/tmp/.pvs
done done
# final step ask if everything is ok? # final step ask if everything is ok?
_dialog --yesno "Would you like to create Volume Group like this?\n\n${_VGDEV}\n\nPhysical Volumes:\n$(sd -p '$' '\n' /tmp/.pvs)" 0 0 && break _dialog --yesno "Would you like to create Volume Group like this?\n\n${_VGDEV}\n\nPhysical Volumes:\n$(rg '(.*$)' -r '$1\n' /tmp/.pvs)" 0 0 && break
done done
_PV="$(echo -n "$(cat /tmp/.pvs)")" _PV="$(echo -n "$(cat /tmp/.pvs)")"
_umountall _umountall