Files
pentagi/frontend/scripts/lib.ts
T
2026-03-26 06:16:07 +03:00

11 lines
255 B
TypeScript

import { execSync } from 'node:child_process';
export const getGitHash = () => {
try {
return execSync('git rev-parse HEAD').toString().trim();
} catch (e) {
console.error('Failed to get git hash', e);
return '';
}
};