mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-30 17:50:04 +02:00
fix wget_auto_compression check prining stderr to console
This commit is contained in:
@@ -221,7 +221,7 @@ try:
|
|||||||
WGET_AUTO_COMPRESSION = False
|
WGET_AUTO_COMPRESSION = False
|
||||||
if USE_WGET:
|
if USE_WGET:
|
||||||
WGET_VERSION = bin_version(WGET_BINARY)
|
WGET_VERSION = bin_version(WGET_BINARY)
|
||||||
WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL).returncode
|
WGET_AUTO_COMPRESSION = not run([WGET_BINARY, "--compression=auto", "--help"], stdout=DEVNULL, stderr=DEVNULL).returncode
|
||||||
|
|
||||||
WGET_USER_AGENT = WGET_USER_AGENT.format(
|
WGET_USER_AGENT = WGET_USER_AGENT.format(
|
||||||
VERSION=VERSION,
|
VERSION=VERSION,
|
||||||
|
Reference in New Issue
Block a user