file/write

This commit is contained in:
Marc Beninca 2024-12-01 16:39:55 +01:00
parent 48d7236451
commit 482ba47dd9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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() {
lsblk \
--noempty \