Browse Source

Fixed zip error on Linux

IXTW 4 years ago
parent
commit
2d2abbb465
3 changed files with 7 additions and 1 deletions
  1. 4 0
      mod/filesystem/hidden/hidden.go
  2. 1 1
      start.sh
  3. 2 0
      start.sh.backup

+ 4 - 0
mod/filesystem/hidden/hidden.go

@@ -25,6 +25,10 @@ func IsHidden(filename string, recursive bool) (bool, error) {
 		filename = filepath.ToSlash(filename)
 		chunks := strings.Split(filename, "/")
 		for _, chunk := range chunks {
+			if strings.TrimSpace(chunk) == "" {
+				//Empty chunk. Skip this
+				continue
+			}
 			hiddenState, _ := isHidden(strings.TrimSpace(chunk))
 			if hiddenState {
 				return true, nil

+ 1 - 1
start.sh

@@ -1,2 +1,2 @@
 #!/bin/bash
-sudo ./arozos -hostname "ArozOS" -port 8080 -tls=true -tls_port 8443
+sudo ./arozos -hostname "ixtw" -allow_upnp=true -port 8082 -tls=true -tls_port 8443  -max_upload_size 25000

+ 2 - 0
start.sh.backup

@@ -0,0 +1,2 @@
+#!/bin/bash
+sudo ./arozos -hostname "ixtw" -allow_upnp=true -port 8082 -tls=true -tls_port 8443  -max_upload_size 25000