From 7ed36c0d3e2624e5bd4a661d6c9ed1ce02a02c92 Mon Sep 17 00:00:00 2001
From: Ian Douglas Scott <ian@iandouglasscott.com>
Date: Fri, 23 Jun 2017 20:45:17 -0700
Subject: [PATCH] Correct ca-certificates recipe

---
 recipes/ca-certificates/recipe.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/recipes/ca-certificates/recipe.sh b/recipes/ca-certificates/recipe.sh
index dc5a06b49..f4e00f7a0 100644
--- a/recipes/ca-certificates/recipe.sh
+++ b/recipes/ca-certificates/recipe.sh
@@ -1,15 +1,16 @@
 function recipe_fetch {
-    mkdir source
+    if [ ! -d source ]
+    then
+        mkdir source
+    fi
     pushd source
-        curl -o make-ca.sh http://anduin.linuxfromscratch.org/BLFS/other/make-ca.sh-20170514
-        curl -o certdata.txt http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt
+        curl -o make-ca.sh --time-cond make-ca.sh http://anduin.linuxfromscratch.org/BLFS/other/make-ca.sh-20170514
+        curl -o certdata.txt --time-cond certdata.txt http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt
     popd
     skip=1
 }
 
 function recipe_update {
-    curl -o make-ca.sh --time-cond make-ca.sh http://anduin.linuxfromscratch.org/BLFS/other/make-ca.sh-20170514
-    curl -o certdata.txt --time-cond certdata.txt http://anduin.linuxfromscratch.org/BLFS/other/certdata.txt
     skip=1
 }
 
-- 
GitLab