From b0b82813d14313155e93af3c134ca5d20ce751e1 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 2 Nov 2025 22:20:48 -0500 Subject: [PATCH] Handle no patches --- bin/sync-aur | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sync-aur b/bin/sync-aur index 6587485..057ccb6 100755 --- a/bin/sync-aur +++ b/bin/sync-aur @@ -99,7 +99,7 @@ cd "$PKGBUILDS_DIR" for dir in */; do if [[ -d "$dir/patches" ]]; then print_info "Applying patches for $dir..." - (cd "$dir" && for patch in patches/*.patch; do + (cd "$dir" && shopt -s nullglob && for patch in patches/*.patch; do if ! patch -p1 --no-backup-if-mismatch < "$patch"; then print_error "Failed to apply patch: $patch" exit 1