mkalteriso="${script_path}/system/mkalteriso"
usershell="/bin/bash"
noconfirm=false
+rebuildfile="${work_dir}/build_options"
dependence=(
"alterlinux-keyring"
# "archiso"
# Save build options
local save_var
save_var() {
- local out_file="${work_dir}/build_options"
+ local out_file="${rebuildfile}"
local i
echo "#!/usr/bin/env bash" > "${out_file}"
echo "# Build options are stored here." >> "${out_file}"
remove "${work_dir}/${arch}"
remove "${work_dir}/packages.list"
remove "${work_dir}/packages-full.list"
- remove "${work_dir}/build_options"
+ remove "${rebuildfile}"
if [[ -z $(ls $(realpath "${work_dir}")/* ) ]]; then
remove ${work_dir}/*
fi
if [[ -d "${script_path}"/channels/${channel_name}.add ]]; then
channel_name="${channel_name}.add"
elif [[ ${channel_name} = rebuild ]]; then
- if [[ -f "${work_dir}/build_options" ]]; then
+ if [[ -f "${rebuildfile}" ]]; then
if [[ ! $(( OPTIND - 1 )) = 0 ]]; then
if [[ $(( OPTIND - 1 )) = 1 ]] && [[ ${debug} = true ]]; then
rebuild=true