Scripts version 2165

This commit is contained in:
castro-fidel
2023-02-21 17:48:15 +03:00
parent e448ed2751
commit c26941cd2c
8 changed files with 33 additions and 7 deletions

View File

@ -958,3 +958,15 @@ pw_create_gui_png () {
fi
fi
}
pw_find_exe () {
unset PW_FIND_TIME
case "$1" in
"last_day") PW_FIND_TIME="-mtime -1" ;;
esac
PW_EXCUDE_EXE_FIND='(windows|explorer|anticheat|programdata|redist|setup|.ppdb|unin|error|crash|handler|install|/jre/|steam|uploader)'
PW_PATH_FOR_FIND="${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/"
find -P "${PW_PATH_FOR_FIND}" -type f -name "*.exe" ${PW_FIND_TIME} | grep -viE ${PW_EXCUDE_EXE_FIND}
}