]> git.plutz.net Git - serve0/blobdiff - index.cgi
style rewrite
[serve0] / index.cgi
index d16e87482594dbfe05fec0f086926dabf3f2b8a9..1b84d2f436f149a742e11494b592c27a3e9a7b0b 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -90,22 +90,26 @@ case $ACTION in
   fi;;
 esac
 
-case $PATH_INFO in
-  /style.css)
-    . "$_EXEC/cgilite/file.sh"
-    [ -r "$_DATA/$PATH_INFO" ] \
-    && FILE "$_DATA/$PATH_INFO" \
-    || FILE "$_EXEC/style.css"
-    return 0
-  ;;
-  /stereoview.js)
-    . "$_EXEC/cgilite/file.sh"
-    FILE "$_EXEC/stereoview.js"
-    return 0
-  ;;
-esac
+case $PATH_INFO in
+  /style.css)
+    . "$_EXEC/cgilite/file.sh"
+    [ -r "$_DATA/$PATH_INFO" ] \
+    && FILE "$_DATA/$PATH_INFO" \
+    || FILE "$_EXEC/style.css"
+    return 0
+  ;;
+  /stereoview.js)
+    . "$_EXEC/cgilite/file.sh"
+    FILE "$_EXEC/stereoview.js"
+    return 0
+  ;;
+esac
 
-if [ -f "$_DATA/$PATH_INFO" ]; then
+if [ -f "$_EXEC/$PATH_INFO" ]; then
+  . "$_EXEC/cgilite/file.sh"
+  FILE "$_EXEC/$PATH_INFO"
+  return 0
+elif [ -f "$_DATA/$PATH_INFO" ]; then
   . "$_EXEC/view.sh"
   return 0
 elif [ -d "$_DATA/$PATH_INFO" ]; then