]> WPIA git - nre.git/blobdiff - generateTime
add: generate htdocs-archives
[nre.git] / generateTime
index d5e8553151499e41fa4a51f6d6b31bbc0dcae4c0..6f2572dee22e034ac92f5c22d08cdfeb56ded04d 100755 (executable)
@@ -35,7 +35,7 @@ TESTCA
 mkdir -p $year/ca
 
 
-for i in $TIME_IDX; do
+for i in "${TIME_IDX[@]}"; do
     point=${year}${points[${i}]}
     nextp=${points[$((${i} + 1))]}
     if [[ "$nextp" == "" ]]; then
@@ -44,7 +44,7 @@ for i in $TIME_IDX; do
         epoint=$((${year} + 2 ))${epoints[${i}]}
     fi
 
-    for ca in $STRUCT_CAS; do
+    for ca in "${STRUCT_CAS[@]}"; do
         . ../CAs/$ca
         genKey "/CN=$name ${year}-${i}" $year/ca/${ca}_${year}_${i}
         genTimeCA $year/ca/${ca}_${year}_${i} $ca "$point" "$epoint"