Removed the remaining use of python

This commit is contained in:
Geoff Bourne committed 2020-01-30 21:39:35 -06:00
1 parent c449a31b37
commit 9d67dceff3
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ fi
echo "Checking for JSON files."
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
for j in $JSON_FILES; do
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
if [[ $(cat $j | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') == "" ]]; then
echo "Fixing JSON $j"
echo '[]' > $j
fi