summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclerk_updater6
1 files changed, 3 insertions, 3 deletions
diff --git a/clerk_updater b/clerk_updater
index 96af5f6..425cb05 100755
--- a/clerk_updater
+++ b/clerk_updater
@@ -8,10 +8,10 @@ sed=$([[ "$OSTYPE" == "darwin"* ]] && echo 'gsed' || echo 'sed')
notify()
{
- if [[ "$OSTYPE" == "darwin"* ]]; then
- say "Updating clerk caches"
- else
+ if hash notify-send 2>/dev/null; then
notify-send "clerk" "Creating caches"
+ elif hash say 2>/dev/null; then
+ say "Updating clerk caches"
fi
}