From 441ac7fab150a29f7713aaa993573d590b1e4515 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Fri, 25 Jun 2021 14:06:07 -0400
Subject: [PATCH] Corrected check on patches/series

---
 helpers/config | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helpers/config b/helpers/config
index 2b60bfa2b..c09000f01 100755
--- a/helpers/config
+++ b/helpers/config
@@ -183,7 +183,9 @@ cd source
 compile(){
 
 # Make sure the series file is formated correctly after removals
-grep -q [a-z] debian/patches/series || echo -n > debian/patches/series
+if [ -f debian/patches/series ]; then
+  grep -q [a-z] debian/patches/series || echo -n > debian/patches/series
+fi
 
 if [ 1$QUILT != 1skip ]; then
 export QUILT_PATCHES=debian/patches
-- 
GitLab