File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ const os = require('os');
10
10
const packageName = 'html5-boilerplate' ;
11
11
12
12
( async ( ) => {
13
- const version = argv [ 'release' ] || '' ;
13
+ const version = argv [ 'release' ] || 'latest ' ;
14
14
const targetDir = path . resolve ( argv [ '_' ] [ 0 ] || './' ) ;
15
- const spinner = ora ( `Downloading ${ packageName } ${ version ? ' version ' + version : 'latest version' } to ${ targetDir } ` ) . start ( ) ;
15
+ const spinner = ora ( `Downloading ${ packageName } version ' ${ version } ' to ${ targetDir } ` ) . start ( ) ;
16
16
const tempDir = os . tmpdir ( ) + `/${ packageName } -staging` ;
17
17
await fs . ensureDir ( tempDir ) ;
18
18
try {
19
- const { from : nameWithVersion } = await extract ( packageName + '@' + version , tempDir , { } ) ;
19
+ const { from : nameWithVersion } = await extract ( packageName + '@' + version , tempDir , { } ) ;
20
20
spinner . text = `${ nameWithVersion } copied to ${ targetDir } . Have fun!` ;
21
21
} catch ( err ) {
22
22
await fs . remove ( tempDir ) ;
You can’t perform that action at this time.
0 commit comments