Skip to content

Commit

Permalink
Fix build script (kubernetes#4258)
Browse files Browse the repository at this point in the history
In MacOS, `date` command does not have `%N` option.
We do not need elapsed time in nanosecond.
  • Loading branch information
shu-mutou authored and k8s-ci-robot committed Sep 5, 2019
1 parent 7473cfb commit ac00051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function parse::args {
}

# Execute script.
START=$(date +%s.%N)
START=$(date +%s)

parse::args "$@"
clean
Expand All @@ -129,6 +129,6 @@ copy::frontend
copy::supported-locales
copy::dockerfile

END=$(date +%s.%N)
END=$(date +%s)
TOOK=$(echo "${END} - ${START}" | bc)
say "\nBuild finished successfully after ${TOOK}s"

0 comments on commit ac00051

Please sign in to comment.