git sha
This commit is contained in:
parent
6492d5b3d5
commit
7e5de30ee9
|
|
@ -1,4 +1,4 @@
|
|||
import { NOSE_STARTED, NOSE_SYS, NOSE_DIR } from "@/config"
|
||||
import { NOSE_STARTED, NOSE_SYS, NOSE_DIR, GIT_SHA } from "@/config"
|
||||
|
||||
export default function () {
|
||||
return [
|
||||
|
|
@ -9,6 +9,7 @@ export default function () {
|
|||
`PWD=${process.env.PWD || "(none)"}`,
|
||||
`NOSE_STARTED=${NOSE_STARTED}`,
|
||||
`NOSE_SYS=${NOSE_SYS}`,
|
||||
`NOSE_DIR=${NOSE_DIR}`
|
||||
`NOSE_DIR=${NOSE_DIR}`,
|
||||
`GIT_SHA=${GIT_SHA.slice(0, 8)}`,
|
||||
].join("\n")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { resolve, join } from "node:path"
|
||||
import { $ } from "bun"
|
||||
|
||||
export const NOSE_ICON = ` ͡° ͜ʖ ͡°`
|
||||
|
||||
|
|
@ -9,4 +10,5 @@ export const NOSE_DIR = resolve("..")
|
|||
export const NOSE_BIN = join(NOSE_DIR, "bin")
|
||||
export const NOSE_WWW = join(NOSE_DIR, "www")
|
||||
|
||||
export const NOSE_STARTED = Date.now()
|
||||
export const NOSE_STARTED = Date.now()
|
||||
export const GIT_SHA = (await $`git rev-parse HEAD`.text()).trim()
|
||||
Loading…
Reference in New Issue
Block a user