mirror of
https://github.com/keylase/nvidia-patch.git
synced 2024-11-09 19:48:20 +00:00
docker-entrypoint: do not symlink if there is already one; force if there is not
This commit is contained in:
parent
65b733f3f7
commit
94222a8824
@ -6,8 +6,8 @@ cd /patched-lib && \
|
|||||||
for f in * ; do
|
for f in * ; do
|
||||||
suffix="${f##*.so}"
|
suffix="${f##*.so}"
|
||||||
name="$(basename "$f" "$suffix")"
|
name="$(basename "$f" "$suffix")"
|
||||||
ln -s "$f" "$name"
|
[ -h "$name" ] || ln -sf "$f" "$name"
|
||||||
ln -s "$f" "$name.1"
|
[ -h "$name" ] || ln -sf "$f" "$name.1"
|
||||||
done && \
|
done && \
|
||||||
ldconfig
|
ldconfig
|
||||||
[ "$OLDPWD" ] && cd -
|
[ "$OLDPWD" ] && cd -
|
||||||
|
Loading…
Reference in New Issue
Block a user