diff options
author | Erich Eckner <git@eckner.net> | 2021-05-03 08:14:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-03 08:14:46 +0200 |
commit | b5c3be8eb5a21bd76173860de8e37c705563ca74 (patch) | |
tree | 79347db3f701eeb1322f44b5d4d23857b81bd06c | |
parent | bee0f04536750c2f6f63cd673c900adc07fbc6aa (diff) | |
download | arch-eckner-net-status-backend-b5c3be8eb5a21bd76173860de8e37c705563ca74.tar.xz |
update-packages: only update commit file and package list if commit changed
-rwxr-xr-x | update-packages | 4 |
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 |