From 1bf2f7c1531d28c2ca5c5c72ea67176e5b4555c1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Dec 2016 11:13:04 -0200 Subject: Check for conky availability --- xconky | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xconky') diff --git a/xconky b/xconky index e2b803f..dcd4aa7 100755 --- a/xconky +++ b/xconky @@ -45,6 +45,11 @@ function xconky_refresh { killall -USR1 conky } +# Check +if ! which conky &> /dev/null; then + exit +fi + # Parse if [ -z "$1" ] || [ "$1" == "start" ]; then xconky_start -- cgit v1.2.3