Update test.sh
This commit is contained in:
2
test.sh
2
test.sh
@@ -30,7 +30,7 @@ function show_time () {
|
||||
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 [ $sec != 0 ]; then t+="and ${sec}secs, "; fi
|
||||
|
||||
echo ${t::-2}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user