summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware/module.build
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-29 22:49:28 +0100
committerYour Name2017-11-29 22:49:28 +0100
commit6e38ee92bd6cc96db7f083d4a055fe25b91bef43 (patch)
tree3efe599d579d536886a7ed5669c6592ebc3c8c76 /core/modules/vmware/module.build
parent[chroot.inc] Fix generating whiteout list on newer kernels (diff)
downloadmltk-6e38ee92bd6cc96db7f083d4a055fe25b91bef43.tar.gz
mltk-6e38ee92bd6cc96db7f083d4a055fe25b91bef43.tar.xz
mltk-6e38ee92bd6cc96db7f083d4a055fe25b91bef43.zip
[vmware] Missed two variables to escape in heredoc
Diffstat (limited to 'core/modules/vmware/module.build')
-rw-r--r--core/modules/vmware/module.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/vmware/module.build b/core/modules/vmware/module.build
index a3c93318..cfb6fb39 100644
--- a/core/modules/vmware/module.build
+++ b/core/modules/vmware/module.build
@@ -76,7 +76,7 @@ build() {
pinfo "Installing vmware per chroot..."
chroot_run "${MODULE_BUILD_DIR}" <<-EOF
perror() {
- echo "[ERROR ERROR] " "$@" >&6
+ echo "[ERROR ERROR] " "\$@" >&6
exit 1
}
# PS1='\[\e[1;33m\](chroot) \u@\h:\w\$ \[\e[1;32m\]' /bin/bash -norc # un-comment for debugging within chroot
@@ -88,6 +88,7 @@ build() {
cd "/usr/lib/vmware/modules/source" \
|| perror "Could not cd to '/usr/lib/vmware/modules/source'"
for file in /patches/*.patch; do
+ [ -s "\$file" ] || continue
echo "Applying patch $file"
SHORT="\$(basename "\${file%%__*}")"
KMOD="\${SHORT}.tar"