changeset 534:ce6d0f04f520

Do not read s4-funcs.sh twice
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 06 Apr 2019 18:46:10 +0900
parents 52cf1ec90cfa
children d63b9b287ae9
files s4-init.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-init.sh	Sat Apr 06 18:42:14 2019 +0900
+++ b/s4-init.sh	Sat Apr 06 18:46:10 2019 +0900
@@ -1,5 +1,5 @@
-#!/bin/sh
-. `dirname $0`/s4-funcs.sh
+#!/bin/sh -x
+type cgiinit >/dev/null 2.&1 || . `dirname $0`/s4-funcs.sh
 
 create() {
   # $1=type $2=obj $3=defs...

yatex.org