File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17376,7 +17376,7 @@ const getValidatedInput = (key, re) => {
1737617376const getLinuxDistro = async () => {
1737717377 try {
1737817378 const osRelease = await external_fs_default().promises.readFile("/etc/os-release")
17379- const match = osRelease.toString().match(/^ID=(.*) $/m)
17379+ const match = osRelease.toString().match(/^ID="? (.*?)"? $/m)
1738017380 return match ? match[1] : "(unknown)"
1738117381 } catch (e) {
1738217382 return "(unknown)"
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export const getValidatedInput = (key, re) => {
7575export const getLinuxDistro = async ( ) => {
7676 try {
7777 const osRelease = await fs . promises . readFile ( "/etc/os-release" )
78- const match = osRelease . toString ( ) . match ( / ^ I D = ( .* ) $ / m)
78+ const match = osRelease . toString ( ) . match ( / ^ I D = " ? ( .* ? ) " ? $ / m)
7979 return match ? match [ 1 ] : "(unknown)"
8080 } catch ( e ) {
8181 return "(unknown)"
You can’t perform that action at this time.
0 commit comments