shithub: webbox

Download patch

ref: e51d22809fbc731435eeb935cdaa6d1d8c0b2bff
parent: 00f4565d29766400b04fe6322c912c8fc58d8796
author: sirjofri <[email protected]>
date: Thu Jun 20 12:29:03 EDT 2024

fixes folder parameter

--- a/webbox
+++ b/webbox
@@ -15,7 +15,13 @@
 port=8080
 ~ $1 '' || port=$1
 folder=/
-~ $2 '' || test -d $2 && folder=$2
+~ $2 '' || {
+	test -d $2 && folder=$2
+}
+
+echo webbox configuration:
+echo - exposing folder: $folder
+echo - port: $port
 
 webbox=/n/webbox