changeset 777:1aa864ab9739 feature-world

Set $S4WORLDS correctly
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 11 Jun 2020 15:22:19 +0900
parents d773042e923d
children 3e6d36fa579d
files s4-funcs.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Thu Jun 11 10:39:51 2020 +0900
+++ b/s4-funcs.sh	Thu Jun 11 15:22:19 2020 +0900
@@ -127,11 +127,11 @@
       done
       if [ -s "$worldoptionfile" ]; then
 	echo "</table>$nl</div>" >> $worldlistfile
-	S4WORLDS=": spaste(\`$worldlistfile')"
       else
 	true > $worldoptionfile; true > $worldlistfile	# Remove contents
       fi
     fi
+    [ -s "$worldlistfile" ] && S4WORLDS=": spaste(\`$worldlistfile')"
     ;;
 esac
 

yatex.org