diff --git a/sh/util.sh b/sh/util.sh index 7d9cc3f..a7956ef 100644 --- a/sh/util.sh +++ b/sh/util.sh @@ -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 \