−dupe
This commit is contained in:
parent
c648265e3b
commit
0b0bce29dd
1 changed files with 2 additions and 7 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue