Page MenuHomePhorge

No OneTemporary

Size
744 B
Referenced Files
None
Subscribers
None
diff --git a/build/commit_hash.js b/build/commit_hash.js
index 3719f5906d..2b13afb93a 100644
--- a/build/commit_hash.js
+++ b/build/commit_hash.js
@@ -1,18 +1,20 @@
import childProcess from 'node:child_process'
export const getCommitHash = () => {
const subst = '$Format:%h$'
if (!/Format:/.exec(subst)) {
return subst
} else {
try {
return childProcess
- .execSync('PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin git rev-parse --short HEAD')
+ .execSync(
+ 'PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin git rev-parse --short HEAD',
+ )
.toString()
.trim()
} catch (e) {
console.error('Failed run git:', e)
return 'UNKNOWN'
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Aug 9, 11:35 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1724820
Default Alt Text
(744 B)

Event Timeline