file/write
This commit is contained in:
parent
48d7236451
commit
482ba47dd9
1 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
rwx_file_write() {
|
||||||
|
local file="${1}"
|
||||||
|
local text="${2}"
|
||||||
|
if [ -n "${file}" ]; then
|
||||||
|
printf "%s" "${text}" > "${file}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
rwx_list_block_devices() {
|
rwx_list_block_devices() {
|
||||||
lsblk \
|
lsblk \
|
||||||
--noempty \
|
--noempty \
|
||||||
|
|
Loading…
Reference in a new issue