#!/bin/bash

PREFIX=/usr

function set_gaugeroot() {
    echo "Adding GAUGE_ROOT to environment..."
    echo "export GAUGE_ROOT=$PREFIX"  >> ~/.profile
    updated_profile=1
    source ~/.profile
    echo -e "GAUGE_ROOT has been set. If you face errors, run '$ source ~/.profile'\n"
}

function install_default_plugins() {
    $PREFIX/bin/gauge --install html-report
}

set_gaugeroot
install_default_plugins
