diff --git a/install_gradle.sh b/install_gradle.sh index d6134103..5315f0ad 100755 --- a/install_gradle.sh +++ b/install_gradle.sh @@ -25,9 +25,7 @@ GRADLE_VERSION=${GRADLE_VERSION:-2.14.1} BASE=/opt -date -start_time="$(date +%s)" -echo +start_time="$(start_timer)" | if ! [ -e "$BASE/gradle" ]; then mkdir -p "$BASE" @@ -51,13 +49,6 @@ export PATH=\$PATH:\$GRADLE_HOME/bin EOF fi -echo -date -echo -end_time="$(date +%s)" -# if start and end time are the same let returns exit code 1 -let time_taken=$end_time-$start_time || : -echo "Completed in $time_taken secs" -echo +time_taken "$start_time" section2 "Gradle Install Completed" echo