Browse Source

Fix config import paths

Frans Bergman 4 năm trước cách đây
mục cha
commit
9fc064faa9
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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"