diff options
| author | St33v <github@f3rr3t.com> | 2021-12-14 15:44:55 +1100 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2021-12-14 15:44:55 +1100 |
| commit | dfc8e6fb223fbe150e40bf9e9b5e73763548653f (patch) | |
| tree | c84db0a098d69356db6cc26ea4532f3342583f04 /tests/notifyStub.sh | |
| parent | 618d845dde25c9cbee72178135b2d629449bde28 (diff) | |
test script for notify function
Diffstat (limited to 'tests/notifyStub.sh')
| -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 + |
