mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Fix docker build failing
This commit is contained in:
parent
2263200561
commit
aa85c4f87a
@ -205,10 +205,14 @@ function definePlaceholderValue(mode, name, devValue) {
|
|||||||
* @see https://stackoverflow.com/a/35778030
|
* @see https://stackoverflow.com/a/35778030
|
||||||
*/
|
*/
|
||||||
function getLatestGitCommitHash() {
|
function getLatestGitCommitHash() {
|
||||||
|
try {
|
||||||
return require("child_process")
|
return require("child_process")
|
||||||
.execSync("git rev-parse --short HEAD")
|
.execSync("git rev-parse --short HEAD")
|
||||||
.toString()
|
.toString()
|
||||||
.trim();
|
.trim();
|
||||||
|
} catch {
|
||||||
|
return "could_not_fetch_sha";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function createPlaceholderValues(mode) {
|
function createPlaceholderValues(mode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user