Quote single parameter string

Quotes around paramerer string because apt-add-repository requires
single parameter but networking-tools-source can contain multiple word entries.

Closes-Bug: #1980020
Change-Id: Ia59acbfb997e5df8638d8ad9135f11b121302815
This commit is contained in:
Tilman Baumann 2022-06-27 23:36:55 +01:00
parent c5645ea0b9
commit b7a0f7a708

View File

@ -17,9 +17,9 @@ USE_SRIOV=`config-get enable-sriov`
USE_HW_OFFLOAD=`config-get enable-hardware-offload`
NETWORKING_TOOLS_PPA=`config-get networking-tools-source`
if [[ $NETWORKING_TOOLS_PPA ]] && \
if [[ "$NETWORKING_TOOLS_PPA" ]] && \
[[ $USE_DPDK == "True" || $USE_SRIOV == "True" || $USE_HW_OFFLOAD == "True" ]]; then
apt-add-repository --yes $NETWORKING_TOOLS_PPA
apt-add-repository --yes "$NETWORKING_TOOLS_PPA"
apt-get update
check_and_install sriov-netplan-shim
fi