summaryrefslogtreecommitdiff
path: root/include/option.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-22 09:46:43 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-22 10:24:00 +0000
commitab65ea4c99af4f5569496c58b604ada612a2469a (patch)
tree6feb004f23060a471653ad6d1820de6eea91d878 /include/option.sh
parentfa25414bab5ca9e487bd265f0709e90e41769c69 (diff)
general code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/option.sh')
-rwxr-xr-xinclude/option.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/option.sh b/include/option.sh
index a764bc33..44952d09 100755
--- a/include/option.sh
+++ b/include/option.sh
@@ -74,3 +74,9 @@ handle_coreboot_utils()
[ -z "${mode}" ] || x_ rm -Rf "cbutils/${1}"
done
}
+
+remkdir()
+{
+ rm -Rf "${1}" || err "remkdir: !rm -Rf \"${1}\""
+ mkdir -p "${1}" || err "remkdir: !mkdir -p \"${1}\""
+}