summaryrefslogtreecommitdiff
path: root/tests/notifyStub.sh
blob: 4a9378bb96bd22d9d645671f14f2f75895aa5677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function notify {
      if [ $# -gt 0 ]; then
         msg="$@"
      else
         msg="No message"
      fi  
     # msg=test message no quotes
      notify-send 'borgAuto' "${msg}" --icon=dialog-information
      echo $#  " ${@}"
}

echo "Testing notify"
notify "$@"
notify 'here is my message'
notify