1 2 3 4 5 6 7 8
#! /bin/sh # # SPDX-License-Identifier: GPL-2.0-only # if ! python3 -m json.tool config.json >/dev/null; then echo "config.json isn't valid, aborting commit." >&2 exit 1 fi