summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware-common
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-10 11:58:02 +0200
committerSimon Rettberg2019-07-10 11:58:02 +0200
commit59495be0eec2f8acb6ffb9a5677cbdd8964b1b29 (patch)
treee18bd4c70d7ebb3359a69cb454d36a03227239de /core/modules/vmware-common
parent[vmware-common] Try to fix invalid USB config from older uploads (diff)
downloadmltk-59495be0eec2f8acb6ffb9a5677cbdd8964b1b29.tar.gz
mltk-59495be0eec2f8acb6ffb9a5677cbdd8964b1b29.tar.xz
mltk-59495be0eec2f8acb6ffb9a5677cbdd8964b1b29.zip
[vmware-common] Actually pass some file to grep...
Diffstat (limited to 'core/modules/vmware-common')
-rw-r--r--core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc
index e6b7e1ab..f4916825 100644
--- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc
+++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc
@@ -139,8 +139,8 @@ setup_usb() {
echo 'usb.mangleUsb3Speed = "TRUE"' >> "${TMPCONFIG}"
# Workaround for old VMs
- if grep -q -i '^ehci\.present.*TRUE' \
- && ! grep -q -i '^usb\.present'; then
+ if grep -q -i '^ehci\.present.*TRUE' "${TMPCONFIG}" \
+ && ! grep -q -i '^usb\.present' "${TMPCONFIG}"; then
echo 'usb.present = "TRUE"' >> "${TMPCONFIG}"
fi