1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-29 01:00:11 +02:00

Merge pull request #229 from pigmonkey/stdin

only use stdin if it has a value
This commit is contained in:
Nick Sweeting
2019-05-01 00:19:36 -04:00
committed by GitHub

View File

@@ -86,8 +86,8 @@ def main(*args):
)
print_help()
raise SystemExit(1)
import_path = save_stdin_source(stdin_raw_text)
if stdin_raw_text:
import_path = save_stdin_source(stdin_raw_text)
### Handle ingesting urls from a remote file/feed
# (e.g. if an RSS feed URL is used as the import path)