From 652fdbab3d7064be4545b991b87da0ac6dc1b676 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 9 Jul 2024 20:26:14 +0200 Subject: build-all-with-docker: do not blindly "cd" --- build-all-with-docker | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build-all-with-docker') diff --git a/build-all-with-docker b/build-all-with-docker index 437ed4529..1ffd03577 100755 --- a/build-all-with-docker +++ b/build-all-with-docker @@ -47,6 +47,10 @@ check_and_commit_package_updates() { | sed 's@^.*/@@' ) ); do + if ! [ -d "$pkg" ]; then + >&2 echo "$pwd is not a directory" + continue + fi cd "$pkg" ../addPkgbuildPatch del [ -n "$(git status --porcelain -- .)" ] \ -- cgit v1.2.3-70-g09d2