mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
if test is too fast, print 0s instead of nothing
This commit is contained in:
parent
102f5495d1
commit
00ef2fa344
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ stop_timer () {
|
|||
# Add a 's' for plural values
|
||||
[ $hours -eq 1 ] && phours="${phours}, " || test -z "$phours" || phours="${phours}s, "
|
||||
[ $minutes -eq 1 ] && pminutes="${pminutes}, " || test -z "$pminutes" || pminutes="${pminutes}s, "
|
||||
[ $seconds -gt 1 ] && pseconds="${pseconds}s"
|
||||
[ $seconds -gt 1 ] && pseconds="${pseconds}s" || pseconds="0s"
|
||||
|
||||
time="${phours}${pminutes}${pseconds} ($(date '+%T'))"
|
||||
if [ $1 -eq 2 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue