mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket #3240: fix recognition of UnRAR version.
Add -cfg- option to the command used to detect UnRAR version. This option prevents UnRAR from reading configuration from .rarrc file. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b9a2ac39e8
commit
6baff7c150
@ -22,7 +22,7 @@ UNRAR=`which unrar 2>/dev/null`
|
|||||||
[ ! -x $UNRAR -a -x $RAR ] && UNRAR=$RAR
|
[ ! -x $UNRAR -a -x $RAR ] && UNRAR=$RAR
|
||||||
|
|
||||||
# Define $UNRAR version
|
# Define $UNRAR version
|
||||||
UNRAR_VERSION=`$UNRAR -? | grep "Copyright" | sed -e 's/.*\([0-9]\)\..*/\1/'`
|
UNRAR_VERSION=`$UNRAR -cfg- -? | grep "Copyright" | sed -e 's/.*\([0-9]\)\..*/\1/'`
|
||||||
|
|
||||||
mcrar4fs_list ()
|
mcrar4fs_list ()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user