Update default.inc

This commit is contained in:
2023-12-27 12:13:21 -06:00
parent 8491269327
commit 5b1455cdf4

View File

@@ -163,17 +163,17 @@ SHOW_TIME() {
fi fi
fi fi
t+="${day} days"; t+="${day} days";
if [ $hour != 0 ]; then t+=", "; fi [ $hour != 0 ] && t+=", "
fi fi
if [ $hour != 0 ]; then if [ $hour != 0 ]; then
t+="${hour} hours" t+="${hour} hours"
fi fi
if [ $min != 0 ] && [ $day = 0 ]; then if [ $min != 0 ] && [ $day = 0 ]; then
if [ $hour != 0 ]; then t+=", "; fi [ $hour != 0 ] && t+=", "
t+="${min} mins" t+="${min} mins"
fi fi
if [ "${2}" == "s" ] || ([ $day = 0 ] && [ $hour = 0 ] && [ $min = 0 ]); then if [ ${sec} -ne 0 ] && ([ "${2}" == "s" ] || ([ $day -eq 0 ] && [ $hour -eq 0 ] && [ $min -eq 0 ])); then
if [ $hour != 0 ] || [ $min != 0 ]; then t+=", "; fi ([ $hour -ne 0 ] || [ $min -ne 0 ]) && t+=", "
t+="${sec} secs" t+="${sec} secs"
fi fi
echo ${t} echo ${t}