This commit is contained in:
Marc Beninca 2025-07-27 19:06:50 +02:00
parent c648265e3b
commit 0b0bce29dd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,12 +2,7 @@
# │ util │
# ╰──────╯
rwx_list_block_devices() {
lsblk \
--noempty \
--output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS"
}
# TODO awk
rwx_not() {
case "${1}" in
"false") echo "true" ;;
@ -48,7 +43,7 @@ rwx_root() {
rwx_warn_wipe() {
local tmp
rwx_list_block_devices
rwx_list_block
printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\"
read -r tmp
rwx_log_trace "${tmp}"