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