summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Reuben Tier <Princesseuh@users.noreply.github.com> 2024-09-13 11:46:18 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-09-13 11:46:18 +0000
commit2d016d4aba04eedd81aa43b14cc0d03b241b2b3c (patch)
treeeebbae4adaad5c15ff50f2115d7012cb9129e17b
parent06eff60cabb55d91fe4075421b1693b1ab33225c (diff)
downloadastro-2d016d4aba04eedd81aa43b14cc0d03b241b2b3c.tar.gz
astro-2d016d4aba04eedd81aa43b14cc0d03b241b2b3c.tar.zst
astro-2d016d4aba04eedd81aa43b14cc0d03b241b2b3c.zip
[ci] format
-rw-r--r--packages/astro/src/cli/info/index.ts8
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;
}
}