Skip to content

Commit

Permalink
return instead of exit if installing non existent BT packages fails (o…
Browse files Browse the repository at this point in the history
…penhab#903)

Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi committed Jun 10, 2020
1 parent 9a3b868 commit eb514f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/system.bash
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ needed_packages() {
BTPKGS="$BTPKGS python3-bluez"
fi
# shellcheck disable=SC2086
if cond_redirect apt-get -y install $BTPKGS; then echo "OK"; else echo "FAILED"; exit 1; fi
if cond_redirect apt-get -y install $BTPKGS; then echo "OK"; else echo "FAILED"; return 1; fi
fi
}

Expand Down

0 comments on commit eb514f0

Please sign in to comment.