This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# fetch new versions of Homebrew + all formulae | |
brew update | |
# upgrade outdated formulae + casks | |
brew upgrade | |
# remove outdated downloads for all formulae + casks | |
brew cleanup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# check if console program is installed | |
check_installation(){ | |
type $1 >/dev/null 2>&1 || { echo >&2 "$1 is required: $2 Aborting."; exit 1; } | |
} | |
# printing usage information | |
usage(){ | |
echo "This program is used to update all git repositories in the given folder." |