Instead of blindly copying reg files, only copy new ones so that user changes are not overwritten

master
Ismael Barros² 2014-07-31 18:44:50 +02:00
parent 2dd14846e7
commit 4c33e61656
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ if [ ! -d "$WINEPREFIX" ]; then
# ln -nfs "${WINEPREFIX}/drive_c" "${WINEPREFIX}/dosdevices/c:"
# ln -nfs "${HOME}" "${WINEPREFIX}/dosdevices/y:"
# ln -nfs "/" "${WINEPREFIX}/dosdevices/z:"
# cp "${APPDIR}/"*.reg "${WINEPREFIX}"
for i in "${APPDIR}/"*.reg; do
[ -f "$i" ] && cp -v "$i" "${WINEPREFIX}"
done
fi