summarylogtreecommitdiffstats
path: root/vmware-patch.sh
diff options
context:
space:
mode:
authorBen White2017-11-26 10:22:54 +0100
committerBen White2017-11-26 10:22:54 +0100
commitfa7bc6621a55852893097df4d1e877469d80add0 (patch)
treed0a452a9d80bfcdcf4af712c15846ebcd98ee838 /vmware-patch.sh
parent889dc3e310659f3f6fddc49cb8cca39945390968 (diff)
downloadaur-fa7bc6621a55852893097df4d1e877469d80add0.tar.gz
Working on a clean install of 12.5.8
Diffstat (limited to 'vmware-patch.sh')
-rw-r--r--vmware-patch.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/vmware-patch.sh b/vmware-patch.sh
index 2c9e4421ed9d..0e8d4ee28e0f 100644
--- a/vmware-patch.sh
+++ b/vmware-patch.sh
@@ -152,11 +152,16 @@ for kernel in ${kernels[@]}; do
fi
# Is product version not lower and kernel version not higher in patch name?
- if (( $(vercmp "$ver_patch" "$ver2") <= 0 )) && (( $(vercmp "$kernel_patch" "$kernel_major") >= 0 )); then
+ if (( $(vercmp "$ver_patch" "$ver2") == 0 )) && (( $(vercmp "$kernel_patch" "$kernel_major") >= 0 )); then
+ printf 'Patch: %s, %s\n' "$ver_patch" "$ver2"
+ printf 'Kernel: %s, %s\n' "$kernel_patch" "$kernel_major"
patches+=("$patch")
fi
done
+ # Debug print to see patches before application.
+ printf '%s\n' "${patches[@]}"
+
# Patch
# 1) Make sure we can build
# 2) &>/dev/null: hide all output (STDIN/STDERR)