summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-05-03 08:14:46 +0200
committerErich Eckner <git@eckner.net>2021-05-03 08:14:46 +0200
commitb5c3be8eb5a21bd76173860de8e37c705563ca74 (patch)
tree79347db3f701eeb1322f44b5d4d23857b81bd06c
parentbee0f04536750c2f6f63cd673c900adc07fbc6aa (diff)
downloadarch-eckner-net-status-backend-b5c3be8eb5a21bd76173860de8e37c705563ca74.tar.xz
update-packages: only update commit file and package list if commit changed
-rwxr-xr-xupdate-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-packages b/update-packages
index 3df1022..090259a 100755
--- a/update-packages
+++ b/update-packages
@@ -16,9 +16,9 @@ if [ $# -eq 0 ]; then
p
' \
| parallel -j50 "$0"
+ "${0%/*}/package-status" > "${0%/*}/packages"
+ echo "$commit" > "$0.commit"
fi
- "${0%/*}/package-status" > "${0%/*}/packages"
- echo "$commit" > "$0.commit"
rm "$0.lock"
exit
fi