Add protection in case patch list file does not exist
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 28 Nov 2014 05:56:31 +0000 (00:56 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 5 Dec 2014 04:44:18 +0000 (23:44 -0500)
functions/fpkg

index 4d23bda..eedc14d 100644 (file)
@@ -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)