From b20c068e51b6459005202d0e0aa85264be414ad3 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 28 Jan 2024 11:13:41 +0300 Subject: [PATCH] Ticket #4518: extfs: support unrar-7. Signed-off-by: Andrew Borodin --- src/vfs/extfs/helpers/urar.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vfs/extfs/helpers/urar.in b/src/vfs/extfs/helpers/urar.in index 684234cf1..71a4e82ad 100644 --- a/src/vfs/extfs/helpers/urar.in +++ b/src/vfs/extfs/helpers/urar.in @@ -113,7 +113,10 @@ mcrar5fs_list () mcrarfs_list () { - [ x$UNRAR_VERSION = x6 -o x$UNRAR_VERSION = x5 ] && mcrar5fs_list "$@" || mcrar4fs_list "$@" + case x$UNRAR_VERSION in + x5 | x6 | x7) mcrar5fs_list "$@" ;; + *) mcrar4fs_list "$@" ;; + esac } mcrarfs_copyin ()