Skip to content

Commit 2dc0696

Browse files
committed
Update install_libtorch.sh
update right `pkg_install_dir`
1 parent 0f0c838 commit 2dc0696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain/scripts/stage4/install_libtorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ case "${with_libtorch}" in
3737
__INSTALL__)
3838
echo "==================== Installing libtorch ===================="
3939
dirname="libtorch-${libtorch_ver}"
40-
filename="${dirname}.zip"
41-
pkg_install_dir="${INSTALLDIR}/${filename}"
40+
pkg_install_dir="${INSTALLDIR}/${dirname}"
4241
#pkg_install_dir="${HOME}/lib/libtorch/${libtorch_ver}"
4342
install_lock_file="${pkg_install_dir}/install_successful"
4443
archive_file="libtorch-cxx11-abi-shared-with-deps-${libtorch_ver}%2Bcpu.zip"
44+
filename="${dirname}.zip"
4545

4646
if verify_checksums "${install_lock_file}"; then
4747
echo "${filename} is already installed, skipping it."

0 commit comments

Comments
 (0)