@@ -43,7 +43,7 @@ function getPrompt(argv, schema, onComplete, index, results) {
4343 if ( typeof item . beforeValue === 'function' ) {
4444 item . beforeValue ( results ) ;
4545 }
46- prompt . get ( schema [ index ] , function ( error , result ) {
46+ prompt . get ( schema [ index ] , function ( error , result ) {
4747 if ( error ) {
4848 console . log ( chalk . red ( 'Input Error' ) ) ;
4949 process . exit ( 1 ) ;
@@ -246,7 +246,7 @@ function uploadSite(settings, directoryRef, argv) {
246246 }
247247 if ( bar ) {
248248 var uploadedCount = snapshot . hasChild ( 'uploadedCount' ) ? snapshot . child ( 'uploadedCount' ) . val ( ) : 0 ;
249- bar . update ( uploadedCount / total ) ;
249+ bar . update ( Math . floor ( 100 * uploadedCount / total ) / 100 ) ;
250250 }
251251 } else if ( status === 'removed' ) {
252252 console . log ( chalk . green ( 'Sucessfully removed' ) ) ;
@@ -291,7 +291,7 @@ function getSettings(argv) {
291291 settingsJSON = fs . readFileSync ( settingsFile ) ;
292292 settings = JSON . parse ( settingsJSON ) ;
293293 } catch ( err ) {
294- console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
294+ console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
295295 'firebase.json settings file' ) ;
296296 process . exit ( 1 ) ;
297297 }
@@ -381,7 +381,7 @@ module.exports = {
381381 process . exit ( 1 ) ;
382382 }
383383 console . log ( 'Writing firebase.json settings file...' ) ;
384- var settingsJSON = JSON . stringify ( settings , null , 2 ) + "\n" ;
384+ var settingsJSON = JSON . stringify ( settings , null , 2 ) + '\n' ;
385385 try {
386386 fs . writeFileSync ( settingsFile , settingsJSON ) ;
387387 console . log ( chalk . green ( 'Successfully initialized app' ) ) ;
@@ -565,7 +565,7 @@ module.exports = {
565565 }
566566 }
567567
568- var settingsJSON = JSON . stringify ( settings , null , 2 ) + "\n" ;
568+ var settingsJSON = JSON . stringify ( settings , null , 2 ) + '\n' ;
569569 var settingsFile = path . join ( projectDir , 'firebase.json' ) ;
570570 try {
571571 fs . writeFileSync ( settingsFile , settingsJSON ) ;
@@ -606,7 +606,7 @@ module.exports = {
606606 }
607607 var settings = getSettings ( argv ) ;
608608 if ( typeof ( settings . firebase ) !== 'string' ) {
609- console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
609+ console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
610610 'firebase.json settings file' ) ;
611611 process . exit ( 1 ) ;
612612 }
@@ -668,7 +668,7 @@ module.exports = {
668668 }
669669 var settings = getSettings ( argv ) ;
670670 if ( typeof ( settings . firebase ) !== 'string' ) {
671- console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
671+ console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
672672 'firebase.json settings file' ) ;
673673 process . exit ( 1 ) ;
674674 }
@@ -738,7 +738,7 @@ module.exports = {
738738 open : function ( argv ) {
739739 var settings = getSettings ( argv ) ;
740740 if ( typeof ( settings . firebase ) !== 'string' ) {
741- console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
741+ console . log ( chalk . red ( 'Initialization Error' ) + ' - Could not read ' +
742742 'firebase.json settings file' ) ;
743743 process . exit ( 1 ) ;
744744 }
0 commit comments