fix updating config via jq

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-07 13:34:05 +03:00
parent 26d8aac941
commit 63634e7743
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -15,5 +15,5 @@ init:
fi
if [ -z $$(jq '."parser-directories"' $(TS_CONF) | grep $$(dirname $$PWD) ) ]; then \
jq ".\"parser-directories\" |= . + [\"$$(dirname $$PWD)\"]" $(TS_CONF) > $(TS_CONF); \
cat <<< $$(jq ".\"parser-directories\" |= . + [\"$$(dirname $(PWD))\"]" $(TS_CONF)) > $(TS_CONF); \
fi