        exit 1
    fi
    local -r url="https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh"
    log_info "started procedure for installing homebrew"
    pushd "$HOME" >/dev/null 2>&1
        mkdir -p $HOME/.cache && \
        log_info "running main script to install homebrew"
        sh -c "$(curl -fsSL $url)"
        # add_profile_env_var "MANPATH" '$MANPATH:/home/linuxbrew/.linuxbrew/share/man'
        # add_profile_env_var "INFOPATH" '$INFOPATH:/home/linuxbrew/.linuxbrew/share/info'
        add_to_path '/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/'
        log_info "testing homebrew installation..."
        log_info "uninstalling cmake..."
        sudo apt-get remove -yqq cmake