/**
 * Initialize task.
 * Replaces all t3b_template strings and other meta-data with the data
 * specified inside the 'package.json'. (Should be run after downloading the extension).
 */

var fs = require('fs'),
		config = require("../Config");

module.exports = function(grunt) {
	"use strict";

	grunt.registerTask("init", function() {
		if (!config.packageIsDefault) {
			/*
			 * If the package.json contents are edited:
			 *		=> replace all '<!=  !>' strings and set up the git hooks.
			 *		=> remove the default git history.
			 */
			grunt.task.run(["replace:init", "clean:gitFolder"]);
		} else {
			/*
			 * If the package.json contents are defaults:
			 *		=> Remove any previous set git hooks.
			 *		=> Copy the git hooks as they are not present by default.
			 */
			grunt.task.run(["shell:deleteGitHooks", "shell:hookUpGit"]);
		}

		// Create the base Stylesheet to prevent errors from ext:vhs(File not found).
		if (!fs.existsSync(config.Sass.cssDir + "/Main.css")) {
			grunt.task.run(["compass:dev"]);
		}
	});
};

@@ -206,17 +206,16 @@
 ('fs'),%0A
-%09
 %09config 

Remove an duplicate indent