summaryrefslogtreecommitdiff
path: root/.scripts/checkupdates
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/checkupdates')
-rwxr-xr-x.scripts/checkupdates4
1 files changed, 2 insertions, 2 deletions
diff --git a/.scripts/checkupdates b/.scripts/checkupdates
index 380afd3..5a95974 100755
--- a/.scripts/checkupdates
+++ b/.scripts/checkupdates
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
set -e
updates=$(pacman -Qu | sed '/\[ignored\]$/d')
@@ -6,7 +6,7 @@ updates=$(pacman -Qu | sed '/\[ignored\]$/d')
case $BLOCK_BUTTON in
1) ;& # fallthrough
3) if [ -n "${updates}" ]; then
- notify-send "Available updates" "$updates"
+ notify-send -t $((1000 * 20)) "Available updates" "$updates"
else
notify-send "Available updates" "No available updates"
fi;;