mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-16 04:02:15 +00:00
Fix type def, handle error case
This commit is contained in:
parent
4c2969778b
commit
3d62277edd
1
web/global.d.ts
vendored
1
web/global.d.ts
vendored
@ -3,6 +3,7 @@ declare module 'next/config' {
|
|||||||
publicRuntimeConfig: {
|
publicRuntimeConfig: {
|
||||||
modifiedDate: string
|
modifiedDate: string
|
||||||
modifiedYear: string
|
modifiedYear: string
|
||||||
|
gitHash: string?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@ const config = async (_phase, { _defaultConfig }) => {
|
|||||||
git.stdout.on('data', (data) => {
|
git.stdout.on('data', (data) => {
|
||||||
resolve(data.toString().trim())
|
resolve(data.toString().trim())
|
||||||
})
|
})
|
||||||
|
git.on('error', () => {
|
||||||
|
resolve(undefined)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user