diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-24 11:12:33 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-24 11:12:33 -0400 |
commit | 98c9230dbf2f3d1f128f6ea284177270a47533d5 (patch) | |
tree | 98690ee5cff474a781662ae411f6cd7c95209456 | |
parent | 8c0690534ccb3adabd3e6f6aa868ef3d381cef4e (diff) | |
parent | 1f0374d8a612e8ae4cfe1424e586b443ab10aebb (diff) |
Merge commit '1f037' into complete
-rw-r--r-- | mkarchroot.in | 4 |
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 |