Explorar o código

Added check if jq is installed

Fabian Schliski %!s(int64=6) %!d(string=hai) anos
pai
achega
c89bd9c654
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      resources/templates/scripts/xbackbone_uploader.sh.twig

+ 5 - 0
resources/templates/scripts/xbackbone_uploader.sh.twig

@@ -45,6 +45,11 @@ check() {
         echo "xclip command not found."
         exit;
 	fi	
+	
+	if [ ! -x "$(command -v jq)" ]; then
+        echo "jq command not found."
+        exit;
+	fi	
 
 	if [ ! -x "$(command -v curl)" ]; then
         echo "curl command not found."