#!/usr/bin/env bash

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Definitions

main() {

    local workingDirectory="$(pwd)" \
        && cd "$(dirname $BASH_SOURCE[0])"

    source ./install_xcode.sh
    source ./install_homebrew.sh
    source ./install_homebrew_formulae.sh
    source ./install_homebrew_versions_formulae.sh
    source ./install_homebrew_casks.sh
    source ./install_homebrew_alternate_casks.sh
    source ./install_homebrew_web_font_tools.sh

    update_and_upgrade

    source ./cleanup.sh
    
    cd "$workingDirectory"

}

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Main

main

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Cleanup

unset main

#!/usr/bin/env bash

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Definitions

main() {

    local workingDirectory="$(pwd)" \
        && cd "$(dirname $BASH_SOURCE[0])"

    source ./install_xcode.sh
    source ./install_homebrew.sh
    source ./install_homebrew_formulae.sh
    source ./install_homebrew_versions_formulae.sh
    source ./install_homebrew_casks.sh
    source ./install_homebrew_alternate_casks.sh
    source ./install_homebrew_web_font_tools.sh

    update

    source ./cleanup.sh
    
    cd "$workingDirectory"

}

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Main

main

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Cleanup

unset main

Split utils into separate files for organisation. Rejigged the install process slightly to better cater for already downloaded dotfiles. Added steps to the OS update methods
Split utils into separate files for organisation. Rejigged the install process slightly to better cater for already downloaded dotfiles. Added steps to the OS update methods
