mirror of
https://github.com/withastro/astro.git
synced 2025-01-23 02:51:53 -05:00
[ci] format
This commit is contained in:
parent
06eff60cab
commit
2d016d4aba
1 changed files with 4 additions and 4 deletions
|
@ -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' });
|
||||
|
|
Loading…
Reference in a new issue