summaryrefslogtreecommitdiff
path: root/include/option.sh
diff options
context:
space:
mode:
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}\""
+}