mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Tests: Make rebaseline's build-dir check unambiguous
At least on my Linux machine using zsh, this line was interpreted as ( cd "$build_dir" || echo ... ) && exit 1 instead of the intended cd "$build_dir" || ( echo ... && exit 1 ) ...meaning that it always exited regardless of whether it found the build dir or not. So, let's make the intended precedence explicit.
This commit is contained in:
committed by
Tim Ledbetter
parent
27776c8854
commit
eaea80007c
@@ -24,7 +24,7 @@ else
|
||||
build_dir=$LADYBIRD_SOURCE_DIR/Build/ladybird
|
||||
fi
|
||||
|
||||
cd "$build_dir" || echo "Couldn’t cd to build directory" >&2 && exit 1
|
||||
cd "$build_dir" || { echo "Couldn’t cd to build directory" >&2 && exit 1; }
|
||||
|
||||
if [[ -f ./bin/headless-browser ]]; then
|
||||
ladybird_headless_binary=./bin/headless-browser
|
||||
|
||||
Reference in New Issue
Block a user