From ebc461985330eb5dfc4d51f9fb9fd5455f247f48 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 15 Jul 2024 19:30:27 +0200 Subject: [PATCH] Fix empty `diff` sections --- archiso/airootfs/root/.zlogin | 1 + 1 file changed, 1 insertion(+) diff --git a/archiso/airootfs/root/.zlogin b/archiso/airootfs/root/.zlogin index 76e5893c..a0dae7ba 100644 --- a/archiso/airootfs/root/.zlogin +++ b/archiso/airootfs/root/.zlogin @@ -14,6 +14,7 @@ pushd "PortValhalla" > /dev/null git diff -p -R --no-ext-diff --no-color --diff-filter=M \ | grep -E "^(diff|(old|new) mode)" --color=never \ + | sed "/^diff/{ x; d; }; x; /./{ p; z; }; x;" \ | git apply popd > /dev/null