Fix docker build failing

This commit is contained in:
R Midhun Suresh 2024-08-16 16:00:44 +05:30
parent 2263200561
commit aa85c4f87a
No known key found for this signature in database

View File

@ -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) {