Skip to content

Commit

Permalink
Add printing the start and end time while running fresh-install-of-os…
Browse files Browse the repository at this point in the history
…x.sh script (#16)
  • Loading branch information
jotheeswaran-dev authored Dec 25, 2024
1 parent d22f823 commit 0cae61e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ As documented in the README's [adopting](README.md#how-to-adoptcustomize-the-scr

For those who follow this repo, here's the changelog for ease of adoption:

### 1.0-32

* *[fresh-install-of-osx]* Added date calculation in `fresh-install-of-osx.sh` to track total execution time.

### 1.0-31

* *[approve-fingerprint-sudo.sh]* Handled case to execute `approve-fingerprint-sudo.sh` based on touchId hardware.
Expand Down
7 changes: 7 additions & 0 deletions scripts/fresh-install-of-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# 2. Brightness on battery
# 3. Keyboard brightness

script_start_time=$(date +%s)
echo "==> Script started at: $(date)"

#############################################################
# Utility scripts and env vars used only within this script #
#############################################################
Expand Down Expand Up @@ -490,3 +493,7 @@ fi

echo "\n"
success '** Finished auto installation process: MANUALLY QUIT AND RESTART iTerm2 and Terminal apps **'

script_end_time=$(date +%s)
echo "==> Script completed at: $(date)"
echo "==> Total execution time: $((script_end_time - script_start_time)) seconds"

0 comments on commit 0cae61e

Please sign in to comment.