From 4a0d3a80946ba095c0ca1a4eaeb54e4c41f57ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 5 Oct 2020 20:01:01 +0200 Subject: [PATCH] fix: fwdb: update Intel's repository URL --- spectre-meltdown-checker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 978d1dd..a20ca73 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -857,7 +857,7 @@ update_fwdb() # second, get the Intel firmwares from GitHub intel_tmp="$(mktemp -d /tmp/intelfw-XXXXXX)" - intel_url="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/master.zip" + intel_url="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/main.zip" _info_nol "Fetching Intel firmwares... " ## https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git if command -v wget >/dev/null 2>&1; then @@ -898,7 +898,7 @@ update_fwdb() return 1 fi ( cd "$intel_tmp" && unzip fw.zip >/dev/null; ) - if ! [ -d "$intel_tmp/Intel-Linux-Processor-Microcode-Data-Files-master/intel-ucode" ]; then + if ! [ -d "$intel_tmp/Intel-Linux-Processor-Microcode-Data-Files-main/intel-ucode" ]; then echo ERROR "expected the 'intel-ucode' folder in the downloaded zip file" return 1 fi @@ -915,7 +915,7 @@ update_fwdb() fi # 079/001: sig 0x000106c2, pf_mask 0x01, 2009-04-10, rev 0x0217, size 5120 # 078/004: sig 0x000106ca, pf_mask 0x10, 2009-08-25, rev 0x0107, size 5120 - $iucode_tool -l "$intel_tmp/Intel-Linux-Processor-Microcode-Data-Files-master/intel-ucode" | grep -wF sig | while read -r _line + $iucode_tool -l "$intel_tmp/Intel-Linux-Processor-Microcode-Data-Files-main/intel-ucode" | grep -wF sig | while read -r _line do _line=$( echo "$_line" | tr -d ',') _cpuid=$( echo "$_line" | awk '{print $3}')