mirror of
https://github.com/jordanhillis/pvekclean.git
synced 2026-06-20 10:23:50 +02:00
Update pvekclean.sh
This commit is contained in:
+1
-1
@@ -456,7 +456,7 @@ check_for_update() {
|
||||
}
|
||||
|
||||
timeGreeting() {
|
||||
h=$(date +%H)
|
||||
h=$(date +%k) # Use %k to get the hour as a decimal number (no leading zero)
|
||||
((h >= 5 && h < 12)) && echo "morning" && return
|
||||
((h >= 12 && h < 17)) && echo "afternoon" && return
|
||||
((h >= 17 && h < 21)) && echo "evening" && return
|
||||
|
||||
Reference in New Issue
Block a user