Skip to content

Commit a3b17ba

Browse files
committed
Update pm_zypper_install.sh
1 parent eebc25e commit a3b17ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.scripts/pm_zypper_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ detect_packages() {
4848

4949
local RegEx_XML='name="([A-Za-z0-9_-]*)"'
5050

51-
local Command='zypper -x search -f --provides "${DepsSearch}"'
51+
local Command="zypper -x search -f --provides \"${DepsSearch}\""
5252
notice "Running: ${C["RunningCommand"]}${Command}${NC}"
53-
eval "${Command}" 2> /dev/null | while IFS= read -r line; do
53+
eval ${Command} 2> /dev/null | while IFS= read -r line; do
5454
if [[ ${line} =~ ${RegEx_XML} ]]; then
5555
local Package="${BASH_REMATCH[1]}"
5656
if [[ ! ${Package} =~ ${RegEx_Package_Blacklist} ]]; then

0 commit comments

Comments
 (0)