diff --git a/package.json b/package.json index 21b6a0f..4c76a2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "patchport", - "version": "1.0.0", + "version": "1.0.1", "description": "a deployment and development environment management utility", "main": "index.js", "bin": { diff --git a/src/utils/gitHelpers.ts b/src/utils/gitHelpers.ts index 75d8ff6..489b3ea 100644 --- a/src/utils/gitHelpers.ts +++ b/src/utils/gitHelpers.ts @@ -27,10 +27,11 @@ const promptGhAuthLogin = async (): Promise => { if (shouldLogin) { try { - await execShellCommand('gh auth login') + await execShellCommand('gh', ['auth', 'login'], { interactive: true }) console.log(chalk.green('Authentication successful!')) } catch (error) { console.error(chalk.red('Authentication failed. Please try again.')) + console.error(error) process.exit(1) } } else {