use STATUSBAR variable safely

This commit is contained in:
Luke Smith
2019-11-24 08:10:31 -05:00
parent 499e222fd7
commit 3a91dc30f2
8 changed files with 10 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ notify-send "📦 Repository Sync" "Checking for package updates..."
sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
Check your internet connection, if pacman is already running, or run update manually to see errors."
pkill -RTMIN+8 i3blocks
pkill -RTMIN+8 "${STATUSBAR:?}"
if pacman -Qu | grep -v "\[ignored\]"
then

View File

@@ -9,8 +9,8 @@ ping -q -c 1 1.1.1.1 > /dev/null || exit
pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
echo 🔃 > /tmp/newsupdate
pkill -RTMIN+6 i3blocks
pkill -RTMIN+6 "${STATUSBAR:?}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+6 i3blocks
pkill -RTMIN+6 "${STATUSBAR:?}"
/usr/bin/notify-send "📰 RSS feed update complete."