Skip to content

Commit aaf48ad

Browse files
veedofhunleth
authored andcommitted
Fixed compatibility issue in detect_target.sh
Depending on bash flavour/version, quotes are needed in the -z check. Quotes are more widely compatible and are required for yocto builds.
1 parent 3d8ffb1 commit aaf48ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detect_target.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Detect the platform and output -D flags for use in compilion
55
#
66

7-
if [ -z $CC ]; then
7+
if [ -z "$CC" ]; then
88
CC=cc
99
fi
1010

0 commit comments

Comments
 (0)