tUse xmessage instead of notify-send, and add notification after db refresh - s… | |
git clone git://src.adamsgaard.dk/scholarref | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8fc2c5f8364d8b9c2883ee3aa2b701333a879e62 | |
parent a35f42aff6466a8f6e2463db31accab7fc6a234a | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 16 Sep 2020 09:42:31 +0200 | |
Use xmessage instead of notify-send, and add notification after db refresh | |
Diffstat: | |
M articlesearch | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/articlesearch b/articlesearch | |
t@@ -12,6 +12,7 @@ update_cache() { | |
find $dir -type f \ | |
-iname "*.pdf" -o -iname "*.eps" -o -iname "*.gs" \ | |
-o -iname "*.djvu" -o -iname "*.epub" > "$cachefile" | |
+ xmessage "${0##*/} database update complete" | |
} | |
if [ "$1" = "-u" ]; then | |
t@@ -60,5 +61,5 @@ elif [ "$action" = "Sci-Hub" ]; then | |
elif [ "$action" = "Add reference" ]; then | |
scholarref --add "$query" | |
else | |
- notify-send --category=error "${0##*/}" "Action not understood" | |
+ xmessage "${0##*/}\nAction not understood" | |
fi |