diff options
author | tdback <tyler@tdback.net> | 2025-03-16 13:19:27 -0400 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-03-16 13:19:27 -0400 |
commit | 709df68db2b9afc68d54876fb9696b5090a3107c (patch) | |
tree | 19f784d5de326c12b13c5cc7261f6d625ceda55e | |
parent | 5536c84712af635a81253588790feaa8e4ba02d4 (diff) |
scripts/motd: add leading zero when checking time of day
-rw-r--r-- | modules/scripts/motd/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/scripts/motd/default.nix b/modules/scripts/motd/default.nix index 5185797..3ed8ae7 100644 --- a/modules/scripts/motd/default.nix +++ b/modules/scripts/motd/default.nix @@ -1,3 +1,7 @@ +# modules/scripts/motd/default.nix +# +# Display a welcome message when remoting into servers. + { config, lib, @@ -17,7 +21,7 @@ let ENDCOLOR="\e[0m" case "$(date +'%H')" in - [0-9]|1[0-1]) + 0[0-9]|1[0-1]) TIME="morning" ;; 1[2-7]) |