Update test.sh

This commit is contained in:
2019-02-07 22:41:14 -06:00
parent eacf5b3740
commit 692182b374

10
test.sh
View File

@@ -27,12 +27,12 @@ function show_time () {
else ((hour=num)); fi; else ((min=num)); fi; else ((sec=num)); fi
t=''
if [ $day != 0 ]; then t+="$day days "; fi
if [ $hour != 0 ]; then t+="$hour hours "; fi
if [ $min != 0 ]; then t+="$min mins "; fi
if [ $sec != 0 ]; then t+="$sec secs "; fi
if [ $day != 0 ]; then t+="${day}days, "; fi
if [ $hour != 0 ]; then t+="${hour}hours, "; fi
if [ $min != 0 ]; then t+="${min}mins, "; fi
if [ $sec != 0 ]; then t+="${sec}secs, "; fi
echo $t
echo ${v::-2}
}
show_time ${1}