Skip to content
This repository was archived by the owner on Apr 3, 2018. It is now read-only.

Commit ed00f49

Browse files
committed
Fix #59
1 parent ce516eb commit ed00f49

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: funceble

+7-5
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ generateUnifiedFile()
368368
local type=${1}
369369
# status <string>
370370
local status=${2}
371+
# expdate <string>
372+
local expdate=${3}
371373

372374
if [[ ${outputUnified} == true ]]
373375
then
@@ -379,7 +381,7 @@ generateUnifiedFile()
379381
prints "Less" "${domain}" "${status}" "${type}" >> ${outputUnifiedResult}
380382
else
381383
# We save the domain and his data to the unified file
382-
prints "Generic" "${domain}" "${status}" "Unknown" "${type}" >> ${outputUnifiedResult}
384+
prints "Generic" "${domain}" "${status}" "${expdate}" "${type}" >> ${outputUnifiedResult}
383385
fi
384386
else
385387
if [[ ${outputLess} == true ]]
@@ -394,7 +396,7 @@ generateUnifiedFile()
394396
beforeHeader ${outputUnifiedResult}
395397
printHeader "Generic" >> ${outputUnifiedResult}
396398
# We save the domain and his data to the unified file
397-
prints "Generic" "${domain}" "${status}" "Unknown" "${type}" >> ${outputUnifiedResult}
399+
prints "Generic" "${domain}" "${status}" "${expdate}" "${type}" >> ${outputUnifiedResult}
398400
fi
399401
fi
400402
fi
@@ -445,7 +447,7 @@ generateInvalidFile()
445447
elif [[ ${noFiles} == false ]]
446448
then
447449
# We generate the unified file
448-
generateUnifiedFile "${type}" "${invalidStatus}"
450+
generateUnifiedFile "${type}" "${invalidStatus}" "Unknown"
449451
fi
450452
}
451453

@@ -486,7 +488,7 @@ generateErrorFile()
486488
elif [[ ${noFiles} == false ]]
487489
then
488490
# We generate the unified files
489-
generateUnifiedFile "${type}" "${errorStatus}"
491+
generateUnifiedFile "${type}" "${errorStatus}" "Unknown"
490492
fi
491493
}
492494

@@ -559,7 +561,7 @@ generateValidFile(){
559561
elif [[ ${noFiles} == false ]]
560562
then
561563
# We generate the unified file
562-
generateUnifiedFile "${type}" "${validStatus}"
564+
generateUnifiedFile "${type}" "${validStatus}" "${exp}"
563565
fi
564566
}
565567

0 commit comments

Comments
 (0)