From: Hugo Villeneuve Date: Fri, 28 Nov 2014 05:56:31 +0000 (-0500) Subject: Add protection in case patch list file does not exist X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=769abe2665103a85d34685c3e1fff5d04480c47a;p=hvlinux.git Add protection in case patch list file does not exist --- 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)