Commit 940af24f by Dean Mao

fixes #198

parent 7991365a
......@@ -81,7 +81,11 @@ exports = module.exports = function(args) {
var outFile = options.outFile = argv.o || argv._[1];
if (!outFile) {
outFile = options.outFile = path.join(cwd, path.basename(inFile, '.scss') + '.css');
var suffix = '.css';
if (/\.css$/.test(inFile)) {
suffix = '';
}
outFile = options.outFile = path.join(cwd, path.basename(inFile, '.scss') + suffix);
}
// make sure it's an array.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment