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

@@ -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."