lib/steal-cordova.js
function(opts){
		var buildPath = (opts && opts.path) || this.options.path;
		assert(!!buildPath, "Path needs to be provided");

		var p = path.resolve(buildPath);
		var stealCordova = this;

		return new Promise(function(resolve, reject){
			fse.exists(p, function(doesExist){
				if(doesExist) {
					resolve();
				} else {
					stealCordova.init(opts)
					.then(function() {
						resolve();
					})
					.catch(reject);
				}
			});
		});
	}
function(opts){
		var buildPath = (opts && opts.path) || this.options.path;
		assert(!!buildPath, "Path needs to be provided");

		var p = path.resolve(buildPath);
		var stealCordova = this;

		return new Promise(function(resolve, reject){
			fse.exists(p, function(doesExist){
				if(doesExist) {
					resolve();
				} else {
					stealCordova.init(opts)
					.then(function() {
						resolve();
					})
					.catch(reject);
				}
			});
		});
	}
function ( opts ) { var buildPath = ( opts && opts . path ) || this . options . path ; assert ( ! ! buildPath , "Path needs to be provided" ) ; var p = path . resolve ( buildPath ) ; var stealCordova = this ; return new Promise ( function ( resolve , reject ) { fse . exists ( p , function ( doesExist ) { if ( doesExist ) { resolve ( ) ; } else { stealCordova . init ( opts ) . then ( function ( ) { resolve ( ) ; } ) . catch ( reject ) ; } } ) ; } ) ; }
Only initialize if it hasn't already been.
Only initialize if it hasn t already been .