We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62d908f commit be2f204Copy full SHA for be2f204
1 file changed
build.sh
@@ -356,9 +356,6 @@ prepare_env() {
356
isofs_dir="${build_dir}/iso"
357
lockfile_dir="${build_dir}/lockfile"
358
359
- # Create dir
360
- mkdir -p "${airootfs_dir}" "${cache_dir}"
361
-
362
# Check packages
363
if [[ "${nodepend}" = false ]]; then
364
local _check_failed=false _pkg _result=0
@@ -392,6 +389,16 @@ prepare_env() {
392
389
_run_cleansh
393
390
fi
394
391
+ # Create dir
+ mkdir -p "${airootfs_dir}" "${cache_dir}"
+
395
+ # Set gpg key
396
+ if [[ -n "${gpg_key}" ]]; then
397
+ gpg --batch --output "${work_dir}/pubkey.gpg" --export "${gpg_key}"
398
+ exec {ARCHISO_GNUPG_FD}<>"${build_dir}/pubkey.gpg"
399
+ export ARCHISO_GNUPG_FD
400
+ fi
401
402
# 強制終了時に作業ディレクトリを削除する
403
local _trap_remove_work
404
_trap_remove_work() {
0 commit comments