diff options
author | Renato Botelho <renato@netgate.com> | 2016-08-02 09:45:57 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-08-02 09:45:57 -0300 |
commit | 044ff3839d8cbe0fe57b12c9e4b6b38ec9244131 (patch) | |
tree | e4957955ff89d47fd915d0a02e2e2a3a1d792261 /tools | |
parent | 5df6d76aaeed7104793980c046fc46cd6f3eef76 (diff) | |
download | pfsense-044ff3839d8cbe0fe57b12c9e4b6b38ec9244131.zip pfsense-044ff3839d8cbe0fe57b12c9e4b6b38ec9244131.tar.gz |
Make sure images were built
Diffstat (limited to 'tools')
-rw-r--r-- | tools/builder_common.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 6239795..b31428c 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -1129,6 +1129,11 @@ create_iso_image() { ${ISOPATH} \ ${INSTALLER_CHROOT_DIR} + if [ ! -f "${ISOPATH}" ]; then + echo "ERROR! ISO image was not built" + print_error_pfS + fi + gzip -qf $ISOPATH & _bg_pids="${_bg_pids}${_bg_pids:+ }$!" @@ -1172,6 +1177,11 @@ create_memstick_image() { ${INSTALLER_CHROOT_DIR} \ ${_image_path} + if [ ! -f "${_image_path}" ]; then + echo "ERROR! memstick image was not built" + print_error_pfS + fi + gzip -qf $_image_path & _bg_pids="${_bg_pids}${_bg_pids:+ }$!" @@ -1214,6 +1224,11 @@ create_memstick_serial_image() { ${INSTALLER_CHROOT_DIR} \ ${MEMSTICKSERIALPATH} + if [ ! -f "${MEMSTICKSERIALPATH}" ]; then + echo "ERROR! memstick serial image was not built" + print_error_pfS + fi + gzip -qf $MEMSTICKSERIALPATH & _bg_pids="${_bg_pids}${_bg_pids:+ }$!" @@ -1258,6 +1273,11 @@ create_memstick_adi_image() { ${INSTALLER_CHROOT_DIR} \ ${MEMSTICKADIPATH} + if [ ! -f "${MEMSTICKADIPATH}" ]; then + echo "ERROR! memstick ADI image was not built" + print_error_pfS + fi + gzip -qf $MEMSTICKADIPATH & _bg_pids="${_bg_pids}${_bg_pids:+ }$!" |