]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Check for conky availability
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Dec 2016 13:13:04 +0000 (11:13 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Dec 2016 13:13:04 +0000 (11:13 -0200)
xconky

diff --git a/xconky b/xconky
index e2b803f96c45b5f72012603b0c88d12104573d72..dcd4aa791d82ba69b6b5ad1e65abd87d3bf95350 100755 (executable)
--- 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