1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

Use verbose file operations during installation

This commit is contained in:
Shmerl 2020-01-16 20:54:32 -05:00 committed by Philip Rebohle
parent b08a9e5acf
commit 0e5b5763f0

View File

@ -25,7 +25,7 @@ esac
shift shift
with_dxgi=1 with_dxgi=1
file_cmd="cp" file_cmd="cp -v"
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in
@ -33,7 +33,7 @@ while [ $# -gt 0 ]; do
with_dxgi=0 with_dxgi=0
;; ;;
"--symlink") "--symlink")
file_cmd="ln -s" file_cmd="ln -s -v"
;; ;;
esac esac
shift shift
@ -119,9 +119,9 @@ installFile() {
if [ -n "$1" ]; then if [ -n "$1" ]; then
if [ -f "${dstfile}" ] || [ -h "${dstfile}" ]; then if [ -f "${dstfile}" ] || [ -h "${dstfile}" ]; then
if ! [ -f "${dstfile}.old" ]; then if ! [ -f "${dstfile}.old" ]; then
mv "${dstfile}" "${dstfile}.old" mv -v "${dstfile}" "${dstfile}.old"
else else
rm "${dstfile}" rm -v "${dstfile}"
fi fi
$file_cmd "${srcfile}" "${dstfile}" $file_cmd "${srcfile}" "${dstfile}"
else else
@ -152,8 +152,8 @@ uninstallFile() {
fi fi
if [ -f "${dstfile}.old" ]; then if [ -f "${dstfile}.old" ]; then
rm "${dstfile}" rm -v "${dstfile}"
mv "${dstfile}.old" "${dstfile}" mv -v "${dstfile}.old" "${dstfile}"
return 0 return 0
else else
return 1 return 1