Update test.sh
This commit is contained in:
6
test.sh
6
test.sh
@@ -29,10 +29,8 @@ function show_time () {
|
|||||||
t=''
|
t=''
|
||||||
if [ $day != 0 ]; then t+="${day}days, "; fi
|
if [ $day != 0 ]; then t+="${day}days, "; fi
|
||||||
if [ $hour != 0 ]; then t+="${hour}hours, "; fi
|
if [ $hour != 0 ]; then t+="${hour}hours, "; fi
|
||||||
if [ $min != 0 ]; then t+="${min}mins, "; fi
|
if [ $min != 0 ]; then t+="${min}mins"; fi
|
||||||
if [ $sec != 0 ]; then t+="and ${sec}secs, "; fi
|
echo ${t}
|
||||||
|
|
||||||
echo ${t::-2}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
show_time ${1}
|
show_time ${1}
|
||||||
Reference in New Issue
Block a user