summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'functions.sh')
-rw-r--r--functions.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/functions.sh b/functions.sh
index 6b4c3fa..f5a59fc 100644
--- a/functions.sh
+++ b/functions.sh
@@ -194,14 +194,9 @@ eqatag()
0)
return 1
;;
- 1)
- ;;
- *)
- if command -v jq >/dev/null; then
- genfun_has_jq=1
- else
+ '')
+ if ! hash jq 2>/dev/null; [ "$(( genfun_has_jq = $? ))" -eq 0 ]; then
warn "eqatag: this function requires that jq be installed"
- genfun_has_jq=0
return 1
fi
esac