mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[util] Also test for symlinks when installing/uninstalling
Fixes the broken `-f` test when dlls are linked to the prefix and they change name due to different crosscompilers (.dll, .dll.so)
This commit is contained in:
parent
969aba16a7
commit
664199424b
@ -103,7 +103,7 @@ installFile() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
if [ -f "${dstfile}" ]; then
|
if [ -f "${dstfile}" ] || [ -h "${dstfile}" ]; then
|
||||||
if ! [ -f "${dstfile}.old" ]; then
|
if ! [ -f "${dstfile}.old" ]; then
|
||||||
mv "${dstfile}" "${dstfile}.old"
|
mv "${dstfile}" "${dstfile}.old"
|
||||||
else
|
else
|
||||||
@ -132,7 +132,7 @@ uninstallFile() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -f "${dstfile}" ];then
|
if ! [ -f "${dstfile}" ] && ! [ -h "${dstfile}" ]; then
|
||||||
echo "${dstfile}: File not found. Skipping." >&2
|
echo "${dstfile}: File not found. Skipping." >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user