From c9b27b7f546e4bf44558c7225d73d168dfa616f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pascal=20Eng=C3=A9libert?= <tuxmain@zettascript.org>
Date: Sun, 8 Dec 2019 20:56:03 +0100
Subject: [PATCH] install: fix cmake url

---
 install_gmixer.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/install_gmixer.sh b/install_gmixer.sh
index 0f81dc4..fa3aa77 100755
--- a/install_gmixer.sh
+++ b/install_gmixer.sh
@@ -434,10 +434,10 @@ installOrBuildCmake () {
 
 		if [ ! -d "/usr/src/cmake-3.14.3" ]; then 
 			cd /usr/src
-			rm -rf /usr/src/cmake.tar.gz
+			sudo rm -f /usr/src/cmake.tar.gz
 			#sudo apt install build-essential cmake -y #pour installer cmake nécessaire au build de leveldb >=1.21 #fonctionne sur debian stretch 9.8
 			#si installation au-dessus échoue, construire à la main cmake
-			sudo wget -q https://cmake.org/files/LatestRelease/cmake-3.14.3.tar.gz -O cmake.tar.gz
+			sudo wget -q https://github.com/Kitware/CMake/releases/download/v3.14.3/cmake-3.14.3.tar.gz -O cmake.tar.gz
 			sudo tar -xvf cmake.tar.gz
 			cd cmake-3.14.3/
 			sudo chmod +x bootstrap
@@ -450,10 +450,10 @@ installOrBuildCmake () {
 
 		if [ ! -d "/usr/src/cmake-3.14.3" ]; then 
 			cd /usr/src
-			rm -rf /usr/src/cmake.tar.gz
+			sudo rm -f /usr/src/cmake.tar.gz
 			#sudo yum install build-essential cmake -y #pour installer cmake nécessaire au build de leveldb >=1.21 #fonctionne sur debian stretch 9.8
 			#si installation au-dessus échoue, construire à la main cmake
-			sudo wget -q https://cmake.org/files/LatestRelease/cmake-3.14.3.tar.gz -O cmake.tar.gz
+			sudo wget -q https://github.com/Kitware/CMake/releases/download/v3.14.3/cmake-3.14.3.tar.gz -O cmake.tar.gz
 			sudo tar -xvf cmake.tar.gz
 			cd cmake-3.14.3/
 			sudo chmod +x bootstrap
-- 
GitLab