diff --git a/winehelper b/winehelper index 17d97c3..466f9a1 100755 --- a/winehelper +++ b/winehelper @@ -259,11 +259,13 @@ unpack () { esac create_new_dir "$2" if [[ $skip_xattr == "1" ]] \ - && $command "$1" ${outarg}"$2" 2>&1 | grep -v "xattr" + && $command "$1" ${outarg}"$2" 2>&1 | sed "/xattr/d" then print_ok "Файл $1 распакован." elif $command "$1" ${outarg}"$2" then print_ok "Файл $1 распакован." - else fatal "Распаковать файл $1 не удалось!" + else + try_remove_file "$1" + fatal "Распаковать файл $1 не удалось!" fi return 0 }