@@ -46,23 +46,21 @@ async function runSelfUpdate(
4646 throw new Error ( "Invalid version format: must be semver (e.g., v1.0.0 or 1.0.0)" ) ;
4747 }
4848
49- // Construct the install command using argument arrays
50- const installScriptUrl = "https://safia.rocks/grove/install.sh" ;
51- const curlArgs = [ "curl" , "-fsSL" , installScriptUrl ] ;
52- const shArgs = [ "sh" ] ;
49+ // Construct the install command using the i.captainsafia.sh installer
50+ const baseUrl = "https://i.captainsafia.sh/captainsafia/grove" ;
51+ let installUrl = baseUrl ;
5352
54- // Build the command arguments based on options
53+ // Build the URL based on options
5554 if ( options ?. pr ) {
56- shArgs . push ( "-s" , "--" , "--pr" , options . pr ) ;
55+ installUrl = ` ${ baseUrl } /pr/ ${ options . pr } ` ;
5756 } else if ( version ) {
5857 // Ensure version starts with 'v'
5958 const versionTag = version . startsWith ( "v" ) ? version : `v${ version } ` ;
60- shArgs . push ( "-s" , "--" , versionTag ) ;
59+ installUrl = ` ${ baseUrl } / ${ versionTag } ` ;
6160 }
6261
63- // Combine curl and sh commands with pipe
64- const commandParts = [ ...curlArgs , "|" , ...shArgs ] ;
65- const installCommand = commandParts . join ( " " ) ;
62+ // Construct the install command
63+ const installCommand = `curl ${ installUrl } | sh` ;
6664
6765 // Execute the install command
6866 const proc = Bun . spawn ( [ "sh" , "-c" , installCommand ] , {
0 commit comments