From b90fb76013f8b1a513802b5847dd49ab15120364 Mon Sep 17 00:00:00 2001 From: Jared Cervantes Date: Thu, 5 Feb 2026 09:35:43 -0500 Subject: [PATCH] common/Scripts: Fix quickup to handle missing files gracefully **Summary** Previous function still didn't work if there were no files. Signed-off-by: Jared Cervantes --- common/Scripts/helpers.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/Scripts/helpers.sh b/common/Scripts/helpers.sh index d8bdb7b1cb12..d3bcde41fb3c 100755 --- a/common/Scripts/helpers.sh +++ b/common/Scripts/helpers.sh @@ -66,10 +66,7 @@ function quickfixup() { # Be explicit about adding files specific to packaging to avoid # adding aliens - local paths=(abi_* package.yml pspec_x86_64.xml monitoring.yaml files/) - for path in "${paths[@]}"; do - [[ -e $path ]] && git add "$path" - done + git add abi_* package.yml pspec_x86_64.xml monitoring.yaml MAINTAINERS.md files/ 2>/dev/null || true # Fixup the last commit in the directory git commit --fixup "$(git log -1 --format="%h" -- .)"