repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
f61835e
parent
bbc9409
author
Antonio Mika
date
2022-08-25 05:41:41 +0000 UTC
Fixed list condition
1 files changed,  +1, -1
M wish/list/list.go
+1, -1
1@@ -13,7 +13,7 @@ func Middleware(writeHandler utils.CopyFromClientHandler) wish.Middleware {
2 	return func(sshHandler ssh.Handler) ssh.Handler {
3 		return func(session ssh.Session) {
4 			cmd := session.Command()
5-			if len(cmd) == 0 || (len(cmd) > 1 && cmd[1] != "ls") {
6+			if !(len(cmd) > 1 && cmd[0] == "command" && cmd[1] == "ls") {
7 				sshHandler(session)
8 				return
9 			}