Skip to content

Commit 9ca1d02

Browse files
committed
fix(build): Prereq check - support paths with spaces.
Prereq check before `yarn build` fails when there are spaces in the path. This is common for WSL2 on windows. For example, mvn is in the path at `/mnt/c/Program Files/`. Testing - Ran check on linux paths and windows paths with and without spaces. Tested with correct version, wrong version, and missing dep. fixes #9749
1 parent 5af718b commit 9ca1d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-prerequisites.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ check_which() {
2222

2323
w=$(which ${app}) || w=""
2424

25-
if [ -z $w ] || [ $w == "$app not found" ]
25+
if [ -z "$w" ] || [ "$w" == "$app not found" ]
2626
then
2727
die "Missing dependency: $app. Install $app >= $min"
2828
else

0 commit comments

Comments
 (0)