Show error when using go-jump and jq is not installed

This commit is contained in:
Philippe Daouadi 2017-08-18 16:06:17 +02:00
parent 6844930776
commit 9fafb1aba1

View File

@ -5,6 +5,12 @@
# Needs the following tools in the path: # Needs the following tools in the path:
# - jq for json deserializaton # - jq for json deserializaton
%sh{
if ! jq --version > /dev/null 2>&1; then
echo 'echo -debug %{Dependency unmet: jq, please install it to use go-tools}'
fi
}
# Auto-completion # Auto-completion
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾