diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/notifyStub.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/notifyStub.sh b/tests/notifyStub.sh new file mode 100755 index 0000000..4a9378b --- /dev/null +++ b/tests/notifyStub.sh @@ -0,0 +1,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 + |
