changeset 643:1fa8d503ea2b

Refer exit code
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 04 May 2020 14:42:09 +0900
parents 209d74364eca
children 50b3ceca8bf7
files s4-blog.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Mon May 04 11:12:30 2020 +0900
+++ b/s4-blog.sh	Mon May 04 14:42:09 2020 +0900
@@ -345,7 +345,7 @@
      a_s s
   ON a.id=s.id;
 EOF
-  if [ ! -s $midfile ]; then
+  if [ $? -ne 0 -a ! -s $midfile ]; then
     echo "時間をおいてください(Visit later please)." | html p
     return
   fi

yatex.org