index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-12-02 02:35:26 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-12-02 02:35:26 -0300 |
commit | 5f8999e3ea9b122892d62ac9e88b155d8fe64821 (patch) | |
tree | 42bdf9cb3b496965fe2e2ea7bd782bed4e3b40bf | |
parent | 4d1fb6a58deda81dd64dbbe377531ab82ea54e5e (diff) |
-rwxr-xr-x | archiso/mkarchiso | 7 |
diff --git a/archiso/mkarchiso b/archiso/mkarchiso index ea3089a..db04561 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -218,14 +218,17 @@ _imgcommon () { echo "Removing existing bootable image..." rm -rf "${imgname}" else - echo "error: Image '${imgname}' already exists, aborting." + echo "Error: Image '${imgname}' already exists, aborting." exit 1 fi fi cp "${work_dir}/isomounts" "${work_dir}/iso/" - [ -f ${work_dir}/iso/boot/isolinux/isolinux.cfg ] && sed "s|archisolabel=[^ ]*|archisolabel=${LABEL}|" -i ${work_dir}/iso/boot/isolinux/isolinux.cfg + if ! sed "s|archisolabel=[^ ]*|archisolabel=${LABEL}|" -i ${work_dir}/iso/boot/isolinux/isolinux.cfg; then + echo "Error: ${work_dir}/iso/boot/isolinux/isolinux.cfg, doesn't exist, aborting." + exit 1 + fi } command_iso () { |