date in american safe format

This commit is contained in:
Robin P. Clark 2025-11-14 16:06:34 +00:00
parent 7f0eb5da74
commit 0309985af0

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# --- Date / time (no spaces/colons) --- # --- Date / time (no spaces/colons) ---
DATESTAMP=$(date +"%d%m%Y_%H%M%S") DATESTAMP=$(date +"%d-%b-%Y_%H%M%S")
# --- Git info (with fallbacks if not a git repo) --- # --- Git info (with fallbacks if not a git repo) ---
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then