-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_template.sh
More file actions
42 lines (31 loc) · 1.15 KB
/
Copy pathscript_template.sh
File metadata and controls
42 lines (31 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
# script_template.sh - Script template to insure consistency of script header (so that it's picked up properly by gitsync script for auto-updating the README for the repo.
# ──────────────────────────────────────────────────────
# Author: Don Ferris
# Created: [23-10-2025]
# Current Revision: v1.0
# ──────────────────────────────────────────────────────
# Revision History
# ----------------
# v1.0 — 2025-10-23 — Script template to insure consistency of script header (so that it's picked up properly by gitsync script for auto-updating the RAEDME for the repo.)
########
set -euo pipefail
# Global Variables
LOG_FILE="log.log}"
# Logging helper
log_message() {
local level="$1"; shift
local message="$*"
local timestamp
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
local entry="$timestamp [$level] $message"
printf '%s\n' "$entry" >> "$LOG_FILE"
printf '%s\n' "$entry"
}
fn_1() {
}
fn_2() {
}
main() {
}
main "$@"