Skip to content

Commit 764fc24

Browse files
committed
Add some very basic initial support for BASHBREW_ARCH in "diff-pr.sh"
1 parent ed04fe6 commit 764fc24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

diff-pr.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ fi
7474

7575
export BASHBREW_CACHE="${BASHBREW_CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/bashbrew}"
7676
export BASHBREW_LIBRARY="$PWD/oi/library"
77+
export BASHBREW_ARCH='amd64' # TODO something smarter with arches
7778

7879
# TODO something less hacky than "git archive" hackery, like a "bashbrew archive" or "bashbrew context" or something
7980
template='
@@ -87,9 +88,10 @@ template='
8788
{{- .Tags | last -}}
8889
{{- "/" -}}
8990
{{- " " -}}
90-
{{- .GitCommit -}}
91+
{{- .ArchGitCommit "'"$BASHBREW_ARCH"'" -}}
9192
{{- ":" -}}
92-
{{- (eq .Directory ".") | ternary "" .Directory -}}
93+
{{- $dir := .ArchDirectory "'"$BASHBREW_ARCH"'" -}}
94+
{{- (eq $dir ".") | ternary "" $dir -}}
9395
{{- "\n" -}}
9496
{{- end -}}
9597
'

0 commit comments

Comments
 (0)