From 26079cf9cbcb347abbd582176e7e1ec51d715a28 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 30 Jun 2023 08:13:56 -0600 Subject: [PATCH] bins/gen-patches: catch diff exit code --- bins/gen-patches.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bins/gen-patches.nix b/bins/gen-patches.nix index e7157db..7ea175e 100644 --- a/bins/gen-patches.nix +++ b/bins/gen-patches.nix @@ -42,8 +42,8 @@ let dname=$(dirname "$patch") file="$dname/$fname" outfile=$(echo "$dname/$fname" | sed 's;/;_;g') - diff -u "$file" "$patch" > "$output/$outfile"; - echo "==> Created patch: $output/$outfile" + diff -u "$patch" "$file" > "$output/$outfile" || \ + echo "==> Created patch: $output/$outfile" done ''; };