matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.45k stars 641 forks source link

Bash code works on shell but not on Xbar. #907

Open Mikii67 opened 8 months ago

Mikii67 commented 8 months ago

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"`

Mikii67 commented 8 months ago

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