mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-02-16 15:09:12 +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
|
# Update / Install the Homebrew packages in ~/.Brewfile
|
||||||
if command_exists brew && [ -f "$DOTFILES_DIR/installs/Brewfile" ]; then
|
if command_exists brew && [ -f "$DOTFILES_DIR/installs/Brewfile" ]; then
|
||||||
echo -e "\n${PURPLE}Updating homebrew and packages...${RESET}"
|
echo -e "\n${PURPLE}Updating homebrew and packages...${RESET}"
|
||||||
brew update
|
brew doctor # Check for any app issues
|
||||||
brew upgrade
|
brew update # Update Brew to latest version
|
||||||
brew bundle --global --file $HOME/.Brewfile
|
brew upgrade # Upgrade all installed casks
|
||||||
brew cleanup
|
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
|
else
|
||||||
echo -e "${PURPLE}Skipping Homebrew as requirements not met${RESET}"
|
echo -e "${PURPLE}Skipping Homebrew as requirements not met${RESET}"
|
||||||
fi
|
fi
|
||||||
@ -279,7 +281,13 @@ function finishing_up () {
|
|||||||
|
|
||||||
# Print success message, and time taken
|
# Print success message, and time taken
|
||||||
total_time=$((`date +%s`-START_TIME))
|
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 // \
|
echo -e "\033[0;92m .--.\n |o_o |\n |:_/ |\n // \
|
||||||
\ \\ \n (| | ) \n /'\_ _/\`\\ \n \\___)=(___/\n"
|
\ \\ \n (| | ) \n /'\_ _/\`\\ \n \\___)=(___/\n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user