Skip to content

Commit 4041aa6

Browse files
committed
[fix] : Fixed creating directory
1 parent aa449cd commit 4041aa6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,16 +383,18 @@ prepare_env() {
383383
if [[ -z "$(lsmod | getclm 1 | grep -x "loop")" ]]; then modprobe loop; fi
384384
fi
385385

386+
# Create dir
387+
for _dir in "${build_dir}" "${cache_dir}" "${airootfs_dir}" "${isofs_dir}" "${lockfile_dir}"; do
388+
mkdir -p "${_dir}"
389+
done
390+
386391
# Check work dir
387392
if [[ "${normwork}" = false ]]; then
388393
umount_chroot_advance
389394
msg_info "Deleting the contents of ${build_dir}..."
390395
_run_cleansh
391396
fi
392397

393-
# Create dir
394-
mkdir -p "${airootfs_dir}" "${cache_dir}"
395-
396398
# Set gpg key
397399
if [[ -n "${gpg_key}" ]]; then
398400
gpg --batch --output "${work_dir}/pubkey.gpg" --export "${gpg_key}"

0 commit comments

Comments
 (0)