Skip to content

Commit 648f7ef

Browse files
committed
setup: fix apt-cache search use
apt-cache search returns success even when it fails to find the package.
1 parent baf5d98 commit 648f7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup/pi/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function check_and_configure_tesla_ble () {
256256
DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install bluez
257257
fi
258258

259-
if apt-cache search pi-bluetooth
259+
if [[ -n "$(apt-cache search pi-bluetooth)" ]]
260260
then
261261
if dpkg-query -W --showformat='${db:Status-Status}\n' "pi-bluetooth" 2>/dev/null | grep -q '^installed$'
262262
then

0 commit comments

Comments
 (0)