Skip to content

Commit dfef95e

Browse files
AarC10Copilot
andauthored
Update local_installer.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9c0f7bd commit dfef95e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

local_installer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ fi
4646

4747
cd /tmp
4848
CMAKE_TAR="cmake-${CMAKE_VERSION}-Linux-${ARCH}.tar.gz"
49+
CMAKE_DIR="${CMAKE_TAR%.tar.gz}"
4950
wget "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_TAR}"
5051
tar -xzvf "${CMAKE_TAR}"
51-
sudo cp -r "cmake-${CMAKE_VERSION}-linux-${ARCH}/"* /usr
52+
sudo cp -r "${CMAKE_DIR}/"* /usr
5253
cd -
5354
rm -rf /tmp/cmake-*
5455

0 commit comments

Comments
 (0)