16 lines
336 B
Bash
16 lines
336 B
Bash
|
#!/bin/sh -e
|
||
|
|
||
|
# SPDX-FileCopyrightText: 2025 crueter
|
||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
# shellcheck disable=SC1091
|
||
|
. tools/cpm/common.sh
|
||
|
|
||
|
# shellcheck disable=SC2086
|
||
|
FILES=$(find $DIRS -maxdepth "$MAXDEPTH" -name cpmfile.json)
|
||
|
|
||
|
for file in $FILES; do
|
||
|
jq --indent 4 < "$file" > "$file".new
|
||
|
mv "$file".new "$file"
|
||
|
done
|