mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Move jq requirement message
This commit is contained in:
		@@ -20,13 +20,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set -e
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HAVE_JQ=$(which jq)
 | 
					 | 
				
			||||||
if [[ -z ${HAVE_JQ} ]]; then
 | 
					 | 
				
			||||||
  echo "Please install jq, e.g.: 'sudo apt-get install jq' or, "
 | 
					 | 
				
			||||||
  echo "if you're on a mac with homebrew, 'brew install jq'."
 | 
					 | 
				
			||||||
  exit 1
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
source "${KUBE_REPO_ROOT}/cluster/util.sh"
 | 
					source "${KUBE_REPO_ROOT}/cluster/util.sh"
 | 
				
			||||||
GUESTBOOK="${KUBE_REPO_ROOT}/examples/guestbook"
 | 
					GUESTBOOK="${KUBE_REPO_ROOT}/examples/guestbook"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,6 +25,13 @@ LEAVE_UP=${2:-0}
 | 
				
			|||||||
# Exit on error
 | 
					# Exit on error
 | 
				
			||||||
set -e
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					HAVE_JQ=$(which jq)
 | 
				
			||||||
 | 
					if [[ -z ${HAVE_JQ} ]]; then
 | 
				
			||||||
 | 
					  echo "Please install jq, e.g.: 'sudo apt-get install jq' or, "
 | 
				
			||||||
 | 
					  echo "if you're on a mac with homebrew, 'brew install jq'."
 | 
				
			||||||
 | 
					  exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use testing config
 | 
					# Use testing config
 | 
				
			||||||
export KUBE_CONFIG_FILE="config-test.sh"
 | 
					export KUBE_CONFIG_FILE="config-test.sh"
 | 
				
			||||||
export KUBE_REPO_ROOT="$(dirname $0)/.."
 | 
					export KUBE_REPO_ROOT="$(dirname $0)/.."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user