Update test.sh
This commit is contained in:
1 parent
1b2a71f368
commit
dcd7457228
1 file changed
+2
-4
@@ -29,10 +29,8 @@ function show_time () {
|
||||
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+="and ${sec}secs, "; fi
|
||||
|
||||
echo ${t::-2}
|
||||
if [ $min != 0 ]; then t+="${min}mins"; fi
|
||||
echo ${t}
|
||||
}
|
||||
|
||||
show_time ${1}
|
||||
Reference in new issue
Block a user