mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Change template verb.
This commit is contained in:
@@ -323,7 +323,7 @@ Package.prototype.download = function () {
|
||||
|
||||
Package.prototype.extract = function () {
|
||||
var file = path.join(this.path, 'index' + this.assetType);
|
||||
template('action', { name: 'unziping', shizzle: file }).on('data', this.emit.bind(this, 'data'));
|
||||
template('action', { name: 'extracting', shizzle: file }).on('data', this.emit.bind(this, 'data'));
|
||||
|
||||
fs.createReadStream(file).pipe(this.assetType === '.zip' ? unzip.Extract({ path: this.path }) : tar.Extract({ path: this.path }))
|
||||
.on('error', this.emit.bind(this, 'error'))
|
||||
|
||||
Reference in New Issue
Block a user