Skip to content

Commit

Permalink
Pass through TERM to build and test
Browse files Browse the repository at this point in the history
ffmpeg configure has warnings as a result and passing it through seems most sensible TBH
  • Loading branch information
mxcl committed Feb 19, 2024
1 parent c4510ea commit ef50bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ for (const key of [
'HOME',
'PKGX_PANTRY_PATH', // otherwise we cannot build against the user’s pantry
'GITHUB_TOKEN', // pass through for `gh` and that sort of thing
'LANG', 'LOGNAME', 'USER' // prevent POSIX tools from breaking
'LANG', 'LOGNAME', 'USER', 'TERM' // prevent POSIX tools from breaking
]) {
const value = Deno.env.get(key)
if (value) env[key] = value
Expand Down
2 changes: 1 addition & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const env: Record<string, string> = {
PATH: '/usr/bin:/bin:/usr/sbin:/sbin',
PKGX_DIR: useConfig().prefix.string
}
for (const key of ['HOME', 'PKGX_PANTRY_PATH', 'GITHUB_TOKEN', 'LANG', 'LOGNAME', 'USER']) {
for (const key of ['HOME', 'PKGX_PANTRY_PATH', 'GITHUB_TOKEN', 'LANG', 'LOGNAME', 'USER', 'TERM']) {
const value = Deno.env.get(key)
if (value) env[key] = value
}
Expand Down

0 comments on commit ef50bf2

Please sign in to comment.