tvbeat / tvbeat-ssh

a small helper script to grant you ssh access to tvbeat systems
0 stars 0 forks source link

setting up on chromeos flex #10

Open lblasc opened 3 months ago

lblasc commented 3 months ago

~/.cache dir is missing, mkdir ~/.cache resolves the issue.

lblasc@penguin:~$ tvbeat-ssh config --username lblasc
panic: mkdir /home/lblasc/.cache/tvbeat: no such file or directory

goroutine 1 [running]:
main.configAction(0xc00012c6c0)
        /github/workspace/main.go:243 +0xbc5
github.com/urfave/cli/v2.(*Command).Run(0xc0001e0000, 0xc00012c6c0, {0xc00011f3b0, 0x3, 0x3})
        /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 +0x93f
github.com/urfave/cli/v2.(*Command).Run(0xc0001e0420, 0xc00012c5c0, {0xc00012c000, 0x4, 0x4})
        /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 +0xb7d
github.com/urfave/cli/v2.(*App).RunContext(0xc0001de000, {0x93a8b0, 0xc58920}, {0xc00012c000, 0x4, 0x4})
        /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 +0x566
github.com/urfave/cli/v2.(*App).Run(...)
        /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
main.main()
        /github/workspace/main.go:224 +0x416
aanderse commented 3 months ago

standard Debian container, right? i assume this issue is pretty high priority, yeah?

misread... i see, the code assumes ~/.cache exists and is missing a recursive mkdir... thanks