summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkarchroot.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index fee2a37..67a79aa 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -156,6 +156,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