shortened code using timer functions

pull/2/head
Hari Sekhon 7 years ago
parent adfd369f24
commit bc770dc6f5

@ -25,9 +25,7 @@ GROOVY_VERSION=${GROOVY_VERSION:-2.4.7}
BASE=/opt
date
start_time="$(date +%s)"
echo
start_time="$(start_timer)" |
if ! [ -e "$BASE/groovy" ]; then
mkdir -p "$BASE"
@ -51,13 +49,6 @@ export PATH=\$PATH:\$GROOVY_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 "Groovy Install Completed"
echo

Loading…
Cancel
Save