solve_brew 373 Bytes
Newer Older
Incardona Pietro's avatar
Incardona Pietro committed
1 2
#! /bin/bash

3
function solve_brew() {
Incardona Pietro's avatar
Incardona Pietro committed
4 5 6 7 8 9 10 11
source script/show_solutions

if [ x"$1" = x"osx" ]; then
        commands[0]="ruby -e \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
        possible_solutions "${commands[@]}"
        echo "Executing: ${command[$possible_solutions_ret]}"
        eval ${commands[$possible_solutions_ret]}
fi
12
}
Incardona Pietro's avatar
Incardona Pietro committed
13