[ci] format

This commit is contained in:
Reuben Tier 2024-09-13 11:46:18 +00:00 committed by astrobot-houston
parent 06eff60cab
commit 2d016d4aba

View file

@ -55,7 +55,7 @@ export async function printInfo({ flags }: InfoOptions) {
} }
async function copyToClipboard(text: string) { async function copyToClipboard(text: string) {
text = text.trim() text = text.trim();
const system = platform(); const system = platform();
let command = ''; let command = '';
if (system === 'darwin') { if (system === 'darwin') {
@ -66,8 +66,8 @@ async function copyToClipboard(text: string) {
// Unix: check if a supported command is installed // Unix: check if a supported command is installed
const unixCommands = [ const unixCommands = [
['xclip', '-sel clipboard -l 1'], ['xclip', '-sel clipboard -l 1'],
['wl-copy', '"$0"'] ['wl-copy', '"$0"'],
] ];
for (const [unixCommand, args] of unixCommands) { for (const [unixCommand, args] of unixCommands) {
try { try {
const output = execSync(`which ${unixCommand}`, { encoding: 'utf8', stdio: 'pipe' }); const output = execSync(`which ${unixCommand}`, { encoding: 'utf8', stdio: 'pipe' });