Add a shellcheck test, fix or ignore all warnings reported by shellcheck.

This commit is contained in:
Eric Hawicz committed 2026-10-18 20:42:14 -04:00
1 parent 5a79fb68c2
commit 8f191846d5
21 files changed
+163 -94

No files matched your search

+8 -8
View File
@@ -25,8 +25,8 @@ if [ ! -d "json-c-${release}" ] ; then
git clone https://github.com/json-c/json-c "json-c-${release}"
fi
cd json-c-${release}
git checkout ${reltag}
cd "json-c-${release}"
git checkout "${reltag}"
if [ ! -e doc/html/index.html ] ; then
echo "ERROR: unable to find doc/html/index.html on at version ${reltag} in $(pwd)" 1>&2
exit 1
@@ -38,11 +38,11 @@ if [ ! -d json-c-pages ] ; then
git clone -b gh-pages https://github.com/json-c/json-c json-c-pages
fi
cd json-c-pages
mkdir -p json-c-${release}
cp -R ../json-c-${release}/doc json-c-${release}/.
git add json-c-${release}
mkdir -p "json-c-${release}"
cp -R "../json-c-${release}/doc" "json-c-${release}/."
git add "json-c-${release}"
rm json-c-current-release
ln -s json-c-${release} json-c-current-release
ln -s "json-c-${release}" json-c-current-release
git commit -a -m "Add the ${release} docs."
# TODO: automate changes to index.html
@@ -51,13 +51,13 @@ Steps to do:
* Add section with links to new json-c-${release} release.
* Update versions in the "Current release" section
EOF
read -p "Press <enter> to run vi index.html: "
read -r -p "Press <enter> to run vi index.html: "
vi index.html
git commit -a -m "Update the doc links to point at ${release}"
cat <<EOF
cd $(pwd)
cd ${PWD@Q}
git log -n1 --name-status
git log -n1 -p