added fatal error if installed file not found

This commit is contained in:
Mikhail Tergoev 2025-03-11 15:15:04 +03:00
parent 61e95fc883
commit 2aab6a1951

@ -837,6 +837,7 @@ wine_run () {
wine_run_install () { wine_run_install () {
print_info "Запускаем установку приложения $PROG_NAME." print_info "Запускаем установку приложения $PROG_NAME."
[[ ! -f "$1" ]] && fatal "Нет файла для установки: $1"
case "${1,,}" in case "${1,,}" in
*.exe) wine_run $WINE_WIN_START "$@" ;; *.exe) wine_run $WINE_WIN_START "$@" ;;
*.msi) wine_run msiexec /i "$@" ;; *.msi) wine_run msiexec /i "$@" ;;