From a998c72800527567baa8a641930d051719b114e9 Mon Sep 17 00:00:00 2001 From: Tommie Gannert Date: Sat, 11 Sep 2021 11:49:12 +0200 Subject: [PATCH] Uses git add. --- addlatest | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/addlatest b/addlatest index 0674b3b..8885e6b 100755 --- a/addlatest +++ b/addlatest @@ -30,17 +30,17 @@ main() { wget --header='Accept: application/octet-stream' -O"$name" "$url" reprepro -b ../debian includedeb unstable "$name" done - - if has_changes ../debian/{db,dists,pool}; then - git \ - -c 'user.email=41898282+github-actions[bot]@users.noreply.github.com' \ - -c 'user.name=github-actions[bot]' \ - commit -m "Included release $release_repo@$(cat latest.json | jq -r '.name | ltrimstr("v")')." \ - ../debian/{db,dists,pool} - else - echo 'No updates to commit.' - fi ) + + if has_changes debian/{db,dists,pool}; then + git add debian/{db,dists,pool} + git \ + -c 'user.email=41898282+github-actions[bot]@users.noreply.github.com' \ + -c 'user.name=github-actions[bot]' \ + commit -m "Included release $release_repo@$(cat "$tmpd/latest.json" | jq -r '.name | ltrimstr("v")')." + else + echo 'No updates to commit.' + fi } main