lib/init.js
function isGitInstalled() {
    var result = exec( "git --version", true );
    try {
        if ( !result || result.indexOf( "git" ) < 0 || result.indexOf( "version" ) < 0 ) {
            console.log( Fatal.format(
                "`git` is required by the ToloFrameWork!\n" +
                "Please install it:" ) );
            console.log( "\n> " + "sudo apt-get install git".yellow.italic );
            return false;
        }
        return true;
    } catch ( ex ) {
        fatal( "Fatal error in function `result`!\n" + JSON.stringify( ex, null, '  ' ) );
    }
}
function isGitInstalled() {
    var result = exec( "git --version", true );
    try {
        if ( !result || result.indexOf( "git" ) < 0 || result.indexOf( "version" ) < 0 ) {
            console.log( Fatal.format(
                "`git` is required by the ToloFrameWork!\n" +
                "Please install it:" ) );
            console.log( "\n> " + "sudo apt-get install git".yellow.italic );
            return false;
        }
        return true;
    } catch ( ex ) {
        fatal( "Fatal error in function `result`!\n" + JSON.stringify( ex, null, '  ' ) );
    }
}
function isGitInstalled ( ) { var result = exec ( "git --version" , true ) ; try { if ( ! result || result . indexOf ( "git" ) < 0 || result . indexOf ( "version" ) < 0 ) { console . log ( Fatal . format ( "`git` is required by the ToloFrameWork!\n" + "Please install it:" ) ) ; console . log ( "\n> " + "sudo apt-get install git" . yellow . italic ) ; return false ; } return true ; } catch ( ex ) { fatal ( "Fatal error in function `result`!\n" + JSON . stringify ( ex , null , '  ' ) ) ; } }
Check if `git` is installed on this system.
Check if git is installed on this system .