Handle no patches
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -99,7 +99,7 @@ cd "$PKGBUILDS_DIR"
|
|||||||
for dir in */; do
|
for dir in */; do
|
||||||
if [[ -d "$dir/patches" ]]; then
|
if [[ -d "$dir/patches" ]]; then
|
||||||
print_info "Applying patches for $dir..."
|
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
|
if ! patch -p1 --no-backup-if-mismatch < "$patch"; then
|
||||||
print_error "Failed to apply patch: $patch"
|
print_error "Failed to apply patch: $patch"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user