瀏覽代碼

Fix config import paths

Frans Bergman 4 年之前
父節點
當前提交
9fc064faa9
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      bin/wesh.sh

+ 4 - 4
bin/wesh.sh

@@ -1,11 +1,11 @@
 #!/bin/sh
 
-. conf.sh
-. lib.sh
-. corehandlers.sh
+. ./conf.sh
+. ./lib.sh
+. ./corehandlers.sh
 cd ..
 
-. "$SITE_DIR/_wesh/config"
+[ -f "$SITE_DIR/_wesh/config" ] && . "$SITE_DIR/_wesh/config"
 
 printf "Content-Type: text/html\n"
 printf "\n"