From dfc8e6fb223fbe150e40bf9e9b5e73763548653f Mon Sep 17 00:00:00 2001 From: St33v Date: Tue, 14 Dec 2021 15:44:55 +1100 Subject: test script for notify function --- tests/notifyStub.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/notifyStub.sh 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 + -- cgit v1.3