Skip to content

Commit 4019b50

Browse files
committed
Fixed to prevent error causing false positive
Returned string on missing file was non-empty, thus causing false detection of Pi. Fix tested and working on Mac OS Yosemite.
1 parent 8c0d68c commit 4019b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ VERSION := $(shell echo $(shell grep -r VERSION= propelleride.pri \
2020
| sed -e 's/ /./g')
2121

2222
# if CPU (uname -m) equals...
23-
ifneq ($(shell cat /etc/os-release | grep "ID=raspbian"),"") # if Raspberry Pi
23+
ifeq ($(shell cat /etc/os-release | grep "ID=raspbian"),"ID=raspbian") # if Raspberry Pi
2424
CPU := armhf
2525
else
2626
ifeq ($(shell uname -m),i686) # if i686

0 commit comments

Comments
 (0)