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