ansiweather

Weather in terminal, with ANSI colors and Unicode symbols
Log | Files | Refs | README | LICENSE

commit b21376d8f727ede527ce5c52dceb5702ad4bab7f
parent 98ffc43417505353be8a0d56c88db623915a7e46
Author: Sergey Smyshlyaev <sergey.smyshlyaev@gmail.com>
Date:   Tue, 22 Oct 2013 14:26:06 +0400

resolve #20

Diffstat:
Mansiweather | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/ansiweather b/ansiweather @@ -62,6 +62,15 @@ clouds=$(get_config "clouds" || echo "\033[37;1m\xe2\x98\x81") rain=$(get_config "rain" || echo "\xe2\x98\x94") +###[ Check if jq is installed ]############################################### + +jqpath="`which jq`" +if [ "$jqpath" == "" ] +then + echo -e "\njq binary is not found, please download it from http://stedolan.github.io/jq/ and put it in your PATH" + exit 255 +fi + ###[ Fetch Weather data ]######################################################