@@ -6762,39 +6762,39 @@ const urls = {
67626762
67636763async function downloadCLI ( osPlatform ) {
67646764 try {
6765- core . info ( `Preparing to download/install stackql for ${ osPlatform } ` ) ;
6765+ core . info ( `preparing to download/install stackql for ${ osPlatform } ` ) ;
67666766
67676767 switch ( osPlatform ) {
67686768 case 'win32' :
67696769 return await tc . extractZip ( await tc . downloadTool ( urls [ osPlatform ] ) ) ;
67706770 case 'darwin' :
67716771 // Check if stackql is already installed using brew list --formula
6772- core . info ( `Checking if stackql is already installed` ) ;
6772+ core . info ( `checking if stackql is already installed... ` ) ;
67736773 try {
67746774 const installedFormulas = execSync ( 'brew list --formula' , { encoding : 'utf-8' } ) ;
67756775 if ( installedFormulas . includes ( 'stackql' ) ) {
67766776 core . info ( `stackql is already installed.` ) ;
67776777 const stackqlPath = execSync ( 'which stackql' , { encoding : 'utf-8' } ) . trim ( ) ;
6778- core . debug ( `Stackql is located at: ${ stackqlPath } ` ) ;
6778+ core . debug ( `stackql is located at: ${ stackqlPath } ` ) ;
67796779 return path . dirname ( stackqlPath ) ; // Return the directory of the binary
67806780 } else {
6781- core . info ( `Installing stackql using Homebrew` ) ;
6781+ core . info ( `installing stackql using Homebrew... ` ) ;
67826782 execSync ( 'brew install stackql' , { stdio : 'inherit' } ) ;
67836783 }
67846784 } catch ( error ) {
6785- core . info ( `Error checking/installing stackql: ${ error } ` ) ;
6786- throw new Error ( `Error checking/installing stackql: ${ error } ` ) ;
6785+ core . info ( `error checking/installing stackql: ${ error } ` ) ;
6786+ throw new Error ( `error checking/installing stackql: ${ error } ` ) ;
67876787 }
67886788 const installedPath = execSync ( 'which stackql' , { encoding : 'utf-8' } ) . trim ( ) ;
6789- core . debug ( `Stackql installed at: ${ installedPath } ` ) ;
6789+ core . debug ( `stackql installed at: ${ installedPath } ` ) ;
67906790 return path . dirname ( installedPath ) ; // Return the directory of the binary
67916791 case 'linux' :
67926792 return await tc . extractZip ( await tc . downloadTool ( urls [ osPlatform ] ) ) ;
67936793 default :
6794- throw new Error ( `Unsupported platform: ${ osPlatform } ` ) ;
6794+ throw new Error ( `unsupported platform: ${ osPlatform } ` ) ;
67956795 }
67966796 } catch ( error ) {
6797- core . error ( `Failed to install Stackql : ${ error } ` ) ;
6797+ core . error ( `failed to install stackql : ${ error } ` ) ;
67986798 throw error ;
67996799 }
68006800}
@@ -6823,21 +6823,21 @@ async function installWrapper (pathToCLI) {
68236823 try {
68246824 source = [ pathToCLI , `stackql${ exeSuffix } ` ] . join ( path . sep ) ;
68256825 target = [ pathToCLI , `stackql-bin${ exeSuffix } ` ] . join ( path . sep ) ;
6826- core . debug ( `Moving ${ source } to ${ target } .` ) ;
6826+ core . debug ( `moving ${ source } to ${ target } .. .` ) ;
68276827 await io . mv ( source , target ) ;
68286828 } catch ( e ) {
6829- core . debug ( `Unable to move ${ source } to ${ target } .` ) ;
6829+ core . debug ( `unable to move ${ source } to ${ target } .` ) ;
68306830 throw e ;
68316831 }
68326832
68336833 // Install our wrapper as stackql by moving the wrapped executable to stackql
68346834 try {
68356835 source = path . resolve ( [ __dirname , '..' , 'wrapper' , 'dist' , 'index.js' ] . join ( path . sep ) ) ;
68366836 target = [ pathToCLI , 'stackql' ] . join ( path . sep ) ;
6837- core . debug ( `Copying ${ source } to ${ target } .` ) ;
6837+ core . debug ( `copying ${ source } to ${ target } .. .` ) ;
68386838 await io . cp ( source , target ) ;
68396839 } catch ( e ) {
6840- core . error ( `Unable to copy ${ source } to ${ target } .` ) ;
6840+ core . error ( `unable to copy ${ source } to ${ target } .` ) ;
68416841 throw e ;
68426842 }
68436843
@@ -6862,17 +6862,17 @@ async function setup() {
68626862
68636863 // set perms and make executable
68646864 if ( osPlatform != 'darwin' ) {
6865- core . debug ( `updating permissions for ${ cliPath } ` ) ;
6865+ core . debug ( `updating permissions for ${ cliPath } ... ` ) ;
68666866 fs . chmodSync ( cliPath , '777' ) ;
6867- core . debug ( `adding ${ cliPath } to the path` ) ;
6867+ core . debug ( `adding ${ cliPath } to the path... ` ) ;
68686868 core . addPath ( cliPath )
68696869 await makeExecutable ( cliPath , osPlatform )
68706870 }
68716871
68726872 const wrapper = core . getInput ( 'use_wrapper' ) === 'true' ;
68736873
68746874 if ( wrapper ) {
6875- core . info ( 'installing wrapper' )
6875+ core . info ( 'installing wrapper... ' )
68766876 await installWrapper ( cliPath )
68776877 }
68786878 core . info ( `successfully setup stackql at ${ cliPath } ` ) ;
0 commit comments