mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-21 23:13:09 +01:00
Replaces seconds with minutes if greater than 60
This commit is contained in:
parent
2e60a4255b
commit
0a4cbc35ac
18
install.sh
18
install.sh
@ -217,10 +217,12 @@ function intall_macos_packages () {
|
||||
# Update / Install the Homebrew packages in ~/.Brewfile
|
||||
if command_exists brew && [ -f "$DOTFILES_DIR/installs/Brewfile" ]; then
|
||||
echo -e "\n${PURPLE}Updating homebrew and packages...${RESET}"
|
||||
brew update
|
||||
brew upgrade
|
||||
brew bundle --global --file $HOME/.Brewfile
|
||||
brew cleanup
|
||||
brew doctor # Check for any app issues
|
||||
brew update # Update Brew to latest version
|
||||
brew upgrade # Upgrade all installed casks
|
||||
brew bundle --global --file $HOME/.Brewfile # Install all listed Brew apps
|
||||
brew cleanup # Remove stale lock files and outdated downloads
|
||||
killall Finder # Restart finder (required for some apps)
|
||||
else
|
||||
echo -e "${PURPLE}Skipping Homebrew as requirements not met${RESET}"
|
||||
fi
|
||||
@ -279,7 +281,13 @@ function finishing_up () {
|
||||
|
||||
# Print success message, and time taken
|
||||
total_time=$((`date +%s`-START_TIME))
|
||||
make_banner "✨ Dotfiles configured succesfully in $total_time seconds" ${GREEN_B} 1
|
||||
if [[ $total_time -gt 60 ]]; then
|
||||
total_time="$(($total_time/60)) minutes"
|
||||
else
|
||||
total_time="${total_time} seconds"
|
||||
fi
|
||||
|
||||
make_banner "✨ Dotfiles configured succesfully in $total_time" ${GREEN_B} 1
|
||||
echo -e "\033[0;92m .--.\n |o_o |\n |:_/ |\n // \
|
||||
\ \\ \n (| | ) \n /'\_ _/\`\\ \n \\___)=(___/\n"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user