[archiso] mkarchiso: init cmd: test for file instead of directory

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2013-10-02 19:37:39 -03:00
parent 773f118e19
commit c2b6209532

View File

@ -48,9 +48,12 @@ _show_space_usage () {
} }
_chroot_init() { _chroot_init() {
if [[ ! -d ${work_dir}/root-image ]]; then if [[ -f "${work_dir}/mkarchiso.init" ]]; then
_msg_info "Initial enviroment already installed, skipping."
else
mkdir -p ${work_dir}/root-image mkdir -p ${work_dir}/root-image
_pacman "base syslinux" _pacman "base syslinux"
: > "${work_dir}/mkarchiso.init"
fi fi
} }