mirror of
https://github.com/Kron4ek/Conty
synced 2025-01-13 20:01:41 +01:00
Fix PWD when NVIDIA_FIX is enabled
This commit is contained in:
parent
3d19569ea9
commit
80ef7c393d
1 changed files with 5 additions and 3 deletions
|
@ -31,7 +31,7 @@ export working_dir=/tmp/"$(basename "${script}")"_"${USER}"_"${script_md5}"
|
||||||
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
|
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
|
||||||
|
|
||||||
# The size of this script
|
# The size of this script
|
||||||
scriptsize=17981
|
scriptsize=18006
|
||||||
|
|
||||||
# The size of the utils.tar archive
|
# The size of the utils.tar archive
|
||||||
# utils.tar contains bwrap and squashfuse binaries
|
# utils.tar contains bwrap and squashfuse binaries
|
||||||
|
@ -370,6 +370,8 @@ bind_nvidia_driver () {
|
||||||
&& [ "${nvidia_version}" != "${nvidia_version_inside}" ]; then
|
&& [ "${nvidia_version}" != "${nvidia_version_inside}" ]; then
|
||||||
echo "Nvidia driver version mismatch detected, trying to fix"
|
echo "Nvidia driver version mismatch detected, trying to fix"
|
||||||
|
|
||||||
|
OLD_PWD="${PWD}"
|
||||||
|
|
||||||
mkdir -p "${nvidia_drivers_dir}"
|
mkdir -p "${nvidia_drivers_dir}"
|
||||||
cd "${nvidia_drivers_dir}"
|
cd "${nvidia_drivers_dir}"
|
||||||
|
|
||||||
|
@ -400,7 +402,7 @@ bind_nvidia_driver () {
|
||||||
echo ${nvidia_version} > current_version.txt
|
echo ${nvidia_version} > current_version.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${PWD}"
|
cd "${OLD_PWD}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Bind the downloaded Nvidia libs to the container
|
# Bind the downloaded Nvidia libs to the container
|
||||||
|
|
Loading…
Reference in a new issue