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

Commit

Permalink
Fix #59
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jul 13, 2017
1 parent ce516eb commit ed00f49
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions funceble
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ generateUnifiedFile()
local type=${1}
# status <string>
local status=${2}
# expdate <string>
local expdate=${3}

if [[ ${outputUnified} == true ]]
then
Expand All @@ -379,7 +381,7 @@ generateUnifiedFile()
prints "Less" "${domain}" "${status}" "${type}" >> ${outputUnifiedResult}
else
# We save the domain and his data to the unified file
prints "Generic" "${domain}" "${status}" "Unknown" "${type}" >> ${outputUnifiedResult}
prints "Generic" "${domain}" "${status}" "${expdate}" "${type}" >> ${outputUnifiedResult}
fi
else
if [[ ${outputLess} == true ]]
Expand All @@ -394,7 +396,7 @@ generateUnifiedFile()
beforeHeader ${outputUnifiedResult}
printHeader "Generic" >> ${outputUnifiedResult}
# We save the domain and his data to the unified file
prints "Generic" "${domain}" "${status}" "Unknown" "${type}" >> ${outputUnifiedResult}
prints "Generic" "${domain}" "${status}" "${expdate}" "${type}" >> ${outputUnifiedResult}
fi
fi
fi
Expand Down Expand Up @@ -445,7 +447,7 @@ generateInvalidFile()
elif [[ ${noFiles} == false ]]
then
# We generate the unified file
generateUnifiedFile "${type}" "${invalidStatus}"
generateUnifiedFile "${type}" "${invalidStatus}" "Unknown"
fi
}

Expand Down Expand Up @@ -486,7 +488,7 @@ generateErrorFile()
elif [[ ${noFiles} == false ]]
then
# We generate the unified files
generateUnifiedFile "${type}" "${errorStatus}"
generateUnifiedFile "${type}" "${errorStatus}" "Unknown"
fi
}

Expand Down Expand Up @@ -559,7 +561,7 @@ generateValidFile(){
elif [[ ${noFiles} == false ]]
then
# We generate the unified file
generateUnifiedFile "${type}" "${validStatus}"
generateUnifiedFile "${type}" "${validStatus}" "${exp}"
fi
}

Expand Down

0 comments on commit ed00f49

Please sign in to comment.