shellcheck

This commit is contained in:
ChillerDragon 2023-09-17 13:54:24 +02:00
parent 11fa7308f0
commit f4e58619c5

View file

@ -53,7 +53,12 @@ function gen_doc_index() {
mv "$tmpfile" "$index_file"
return
fi
local diff="$(diff "$tmpfile" "$index_file")"
local diff
if ! diff="$(diff "$tmpfile" "$index_file")"
then
echo "Error: failed to check diff"
exit 1
fi
if [ "$diff" != "" ]
then
echo "Error: documentation index is not up to date"