Skip to content

Commit 53b96a6

Browse files
committed
Adjust Bashbrew building logic to be less noisy if called multiple times (quietly adjust PATH if bashbrew is already built)
1 parent 8bc7e99 commit 53b96a6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/github-actions/generate.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ if ! command -v bashbrew &> /dev/null; then
1212
dir="$(readlink -f "$BASH_SOURCE")"
1313
dir="$(dirname "$dir")"
1414
dir="$(cd "$dir/../.." && pwd -P)"
15-
echo >&2 'Building bashbrew ...'
16-
"$dir/bashbrew.sh" --version > /dev/null
15+
if [ ! -x "$dir/bin/bashbrew" ]; then
16+
echo >&2 'Building bashbrew ...'
17+
"$dir/bashbrew.sh" --version > /dev/null
18+
"$dir/bin/bashbrew" --version >&2
19+
fi
1720
export PATH="$dir/bin:$PATH"
18-
bashbrew --version >&2
21+
bashbrew --version > /dev/null
1922
fi
2023

2124
mkdir "$tmp/library"

0 commit comments

Comments
 (0)