Commit d2025a58 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

only update on changes

parent 5fcccfd5
......@@ -25,7 +25,11 @@ for REPO in $REPOS; do
lua5.3 /usr/share/alpine-secdb/secfixes.lua \
--repo "$REPO" --release "$RELEASE" \
"$HOME"/aports/"$REPO"/*/APKBUILD > "$TMPFILE"
lua5.3 /usr/share/alpine-secdb/secfixes.lua --verify "$TMPFILE"
install -D "$TMPFILE" /var/www/html/"$RELEASE"/"$REPO".yaml
if cmp -s "$TMPFILE" /var/www/html/"$RELEASE"/"$REPO".yaml; then
echo "No changes found yml secfixes, skipping."
else
lua5.3 /usr/share/alpine-secdb/secfixes.lua --verify "$TMPFILE"
install -D "$TMPFILE" /var/www/html/"$RELEASE"/"$REPO".yaml
fi
rm -f "$TMPFILE"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment