summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/notifyStub.sh16
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
+