diff options
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/buildfailure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/buildfailure b/Tools/portbuild/scripts/buildfailure index cc9d944825cd..789b9d711997 100755 --- a/Tools/portbuild/scripts/buildfailure +++ b/Tools/portbuild/scripts/buildfailure @@ -30,17 +30,17 @@ if grep -q "^${portloc}|" failure; then count=$(grep "^${portloc}|" failure | cut -f 5 -d \|) grep -v "^${portloc}|" failure > failure.new - echo "${portloc}|${pkgbase}|${pkgname}|$(date | tr ' ' '_')|$((${count}+1))" >> failure.new + echo "${portloc}|${pkgbase}|${pkgname}|$(date +%s| tr ' ' '_')|$((${count}+1))" >> failure.new mv failure.new failure else # Want newfailure to be in reverse chronological order mv newfailure newfailure.new - echo "${portloc}|${pkgbase}|${pkgname}|$(date | tr ' ' '_')" > newfailure + echo "${portloc}|${pkgbase}|${pkgname}|$(date +%s| tr ' ' '_')" > newfailure cat newfailure newfailure.new > newfailure.new2 mv newfailure.new2 newfailure rm newfailure.new - echo "${portloc}|${pkgbase}|${pkgname}|$(date)|1" >> failure + echo "${portloc}|${pkgbase}|${pkgname}|$(date +%s)|1" >> failure fi |