diff options
-rw-r--r-- | packages/astro/src/cli/info/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/src/cli/info/index.ts b/packages/astro/src/cli/info/index.ts index 3bb2216c0..9e9f06ea6 100644 --- a/packages/astro/src/cli/info/index.ts +++ b/packages/astro/src/cli/info/index.ts @@ -55,7 +55,7 @@ export async function printInfo({ flags }: InfoOptions) { } async function copyToClipboard(text: string) { - text = text.trim() + text = text.trim(); const system = platform(); let command = ''; if (system === 'darwin') { @@ -66,8 +66,8 @@ async function copyToClipboard(text: string) { // Unix: check if a supported command is installed const unixCommands = [ ['xclip', '-sel clipboard -l 1'], - ['wl-copy', '"$0"'] - ] + ['wl-copy', '"$0"'], + ]; for (const [unixCommand, args] of unixCommands) { try { const output = execSync(`which ${unixCommand}`, { encoding: 'utf8', stdio: 'pipe' }); @@ -77,7 +77,7 @@ async function copyToClipboard(text: string) { } command = `${unixCommand} ${args}`; } catch { - // Failed to execute which. Skip! + // Failed to execute which. Skip! continue; } } |