diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-31 16:37:39 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-31 16:37:39 -0300 |
commit | 2dc195f911fb311a491c77fdfb32ed4db1146671 (patch) | |
tree | 069c02678f60115b665f543ff474338747453575 /tools | |
parent | 502db0bde9976bb7c4d950b759e61b8c6eb43582 (diff) | |
download | pfsense-2dc195f911fb311a491c77fdfb32ed4db1146671.zip pfsense-2dc195f911fb311a491c77fdfb32ed4db1146671.tar.gz |
Check if final file exists, not temporary
Diffstat (limited to 'tools')
-rw-r--r-- | tools/builder_common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 8459c87..fb3f0b9 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -840,7 +840,7 @@ create_ova_image() { # Convert vmdk disk to modern version vmdktool -v ${OVA_TMP}/${OVFVMDK} ${OVA_TMP}/i${OVFVMDK}.tmp - if [ $? -ne 0 -o ! -f ${OVA_TMP}/${OVFVMDK}.tmp ]; then + if [ $? -ne 0 -o ! -f ${OVA_TMP}/${OVFVMDK} ]; then if [ -f ${OVA_TMP}/${OVFVMDK}.tmp ]; then rm -f ${OVA_TMP}/${OVFVMDK}.tmp fi |