diff options
author | Erich Eckner <git@eckner.net> | 2024-07-09 14:47:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-07-09 14:47:07 +0200 |
commit | 23fa43d99571dc38e28aa52550cb8cc83de9ed60 (patch) | |
tree | 59b3fdb961fba4c76458155fe5f05fd339b3e1a3 | |
parent | 7c451e9a7296575493467fe61e0ae093b82839f6 (diff) | |
download | archlinuxewe-23fa43d99571dc38e28aa52550cb8cc83de9ed60.tar.xz |
build-all-with-docker: do not commit sources of still-running dockers
-rwxr-xr-x | build-all-with-docker | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build-all-with-docker b/build-all-with-docker index 8c6573519..a9e1eee86 100755 --- a/build-all-with-docker +++ b/build-all-with-docker @@ -36,7 +36,16 @@ ids=$( check_and_commit_package_updates() { [ -z "$(git status --porcelain)" ] && return - for pkg in $(git status --porcelain | sed 's@/.*$@@'); do + for pkg in $( + git status --porcelain \ + | sed ' + s@/[^/]\+$@@ + ' \ + | grep -vxFf <( + docker ps --format '{{.Mounts}}' --no-trunc \ + | sed 's@^.*/@@' + ) + ); do cd "$pkg" ../commit-package -a && git push cd .. |