citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

phonectl (146B)


      1 #!/bin/sh
      2 [ -z "$1" ] && exit 1
      3 resp=$(echo "$1" | nc -U /tmp/phonectl.sock | jq -r .response)
      4 [ "$resp" = "null" ] && exit 0
      5 echo "$resp"
      6 exit 0