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:
parent
c5645ea0b9
commit
b7a0f7a708
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user