mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 03:44:20 +03:00
add getStatus and cases
This commit is contained in:
4
src/utils/getCommit.ts
Normal file
4
src/utils/getCommit.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { execSync } from "child_process";
|
||||
const gitCommand = "git rev-parse HEAD";
|
||||
|
||||
export const getCommit = ():string => execSync(gitCommand).toString().trim();
|
||||
Reference in New Issue
Block a user