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