From: Leandro Lucarella Date: Sat, 24 Nov 2007 17:27:37 +0000 (-0300) Subject: Bugfix: remove \n's to psi_status.sh output so statusd don't get confused. X-Git-Url: https://git.llucax.com/personal/ion3-config.git/commitdiff_plain/a55ac9985c3a56924571aa9dbe8ca019afcd7678?ds=sidebyside Bugfix: remove \n's to psi_status.sh output so statusd don't get confused. --- diff --git a/psi_status.sh b/psi_status.sh index f68de5b..9a27059 100755 --- a/psi_status.sh +++ b/psi_status.sh @@ -7,7 +7,10 @@ regex='^\s*\(.*\)<\/jid>.*/\1/' | sort -u` + | sed 's/.*\(.*\)<\/jid>.*/\1/' \ + | sort -u \ + | tr '\n' ' ' \ + | sed 's/ $//'` if [ $msgs -eq 0 ] then echo "nada nuevo"