summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-24 11:12:33 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-24 11:12:33 -0400
commit98c9230dbf2f3d1f128f6ea284177270a47533d5 (patch)
tree98690ee5cff474a781662ae411f6cd7c95209456 /mkarchroot.in
parent8c0690534ccb3adabd3e6f6aa868ef3d381cef4e (diff)
parent1f0374d8a612e8ae4cfe1424e586b443ab10aebb (diff)
downloaddevtools32-98c9230dbf2f3d1f128f6ea284177270a47533d5.tar.xz
Merge commit '1f037' into complete
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