Skip to content
Snippets Groups Projects
Commit 1f0374d8 authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

mkarchroot: Create working directory if needed

parent f03086a0
No related branches found
No related tags found
No related merge requests found
...@@ -156,6 +156,10 @@ else ...@@ -156,6 +156,10 @@ else
die "Working directory '${working_dir}' already exists - try using -f" die "Working directory '${working_dir}' already exists - try using -f"
fi fi
if [[ ! -d "${working_dir}" ]]; then
mkdir -p "${working_dir}"
fi
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
chmod 0755 "${working_dir}" chmod 0755 "${working_dir}"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment