summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
Diffstat (limited to 'mkarchroot.in')
-rw-r--r--mkarchroot.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index d95f6da..9e58cc9 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -188,6 +188,10 @@ else
die "Working directory '${working_dir}' already exists - try using -f"
fi
+ if [[ ! -d "${working_dir}" ]]; then
+ mkdir -p "${working_dir}"
+ fi
+
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
chmod 0755 "${working_dir}"
fi