Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed Sep 13, 2024
1 parent 06eff60 commit 2d016d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/astro/src/cli/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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' });
Expand All @@ -77,7 +77,7 @@ async function copyToClipboard(text: string) {
}
command = `${unixCommand} ${args}`;
} catch {
// Failed to execute which. Skip!
// Failed to execute which. Skip!
continue;
}
}
Expand Down

0 comments on commit 2d016d4

Please sign in to comment.