Skip to content

Commit 298c043

Browse files
committed
Examples: improves clang version extraction method in 25.jsonc [ci skip]
1 parent 448de9a commit 298c043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

presets/examples/25.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
},
185185
"keyIcon": "",
186186
"key": "│{#red}│ {icon} Clang │{$4}│{#keys}│{$2}",
187-
"text": "clang --version | head -1 | awk '{print $NF}'",
187+
"text": "clang --version | sed -n 's/.*version \\([0-9][0-9.]*\\).*/\\1/p'",
188188
"format": "clang {}"
189189
},
190190
{

0 commit comments

Comments
 (0)