mirror of
https://github.com/keylase/nvidia-patch.git
synced 2024-11-21 13:07:21 +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
|
||||
suffix="${f##*.so}"
|
||||
name="$(basename "$f" "$suffix")"
|
||||
ln -s "$f" "$name"
|
||||
ln -s "$f" "$name.1"
|
||||
[ -h "$name" ] || ln -sf "$f" "$name"
|
||||
[ -h "$name" ] || ln -sf "$f" "$name.1"
|
||||
done && \
|
||||
ldconfig
|
||||
[ "$OLDPWD" ] && cd -
|
||||
|
Loading…
Reference in New Issue
Block a user