mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +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
|
||||
*/
|
||||
function getLatestGitCommitHash() {
|
||||
return require("child_process")
|
||||
.execSync("git rev-parse --short HEAD")
|
||||
.toString()
|
||||
.trim();
|
||||
try {
|
||||
return require("child_process")
|
||||
.execSync("git rev-parse --short HEAD")
|
||||
.toString()
|
||||
.trim();
|
||||
} catch {
|
||||
return "could_not_fetch_sha";
|
||||
}
|
||||
}
|
||||
|
||||
function createPlaceholderValues(mode) {
|
||||
|
Loading…
Reference in New Issue
Block a user