Don't install an empty version file

This commit is contained in:
Carl D. Roth
2016-05-27 11:36:44 -07:00
parent c4669a6dc0
commit 9194aff9da

View File

@@ -185,7 +185,7 @@ fi
# If there is a SWI version file put it in /etc/onl/swi_version
unzip -oq "$swipath" version > "$workdir/version"
if test -f "$workdir/version"; then
if test -s "$workdir/version"; then
cp "$workdir/version" "$destdir/etc/onl/swi_version"
fi