From 769abe2665103a85d34685c3e1fff5d04480c47a Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Fri, 28 Nov 2014 00:56:31 -0500 Subject: [PATCH] Add protection in case patch list file does not exist --- functions/fpkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/fpkg b/functions/fpkg index 4d23bda..eedc14d 100644 --- a/functions/fpkg +++ b/functions/fpkg @@ -244,6 +244,11 @@ static_checkpatch() local PATCHES_LIST=${2} local PATCHES_URL=${3} + # Make sure patch list file exists + if [ ! -f ${PATCHES_LIST} ]; then + return + fi + # Remplace les "+" par "%2B" local PACK_URL=$(echo $PACK | sed s!\+!%2B!g) -- 2.20.1