matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)

Home Page:https://xbarapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bash code works on shell but not on Xbar.

Mikii67 opened this issue · comments

Hello.
The following code (and other similar ones) works fine on a Mac osx Shell, but returns a
"parse stdout:malformed parameters:missing equals" when run from xbar (192.168.1.100 is a Synolgy NAS):

`#!/bin/sh
echo "test"
pluto=$(/usr/bin/ssh Michele@192.168.1.100 "/bin/cat /volume2/scripts/updatejackett.log")

echo "$pluto"`

update: the file "updatejackett.log" contained some pipe characters, and that seemed to break xbar. Replacing the pipe with a "-" in the logfile fixed the problem for me.

Sun Nov 19 16:39:39 CET 2023 | Jackett already to v0.21.1234. Exiting.
Mon Nov 20 07:16:25 CET 2023 | Jackett updated to v0.21.1236