Output youtube-dl to /dev/null. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 79e15a537b78539badd5860d9be45c84906e1c9b DIR parent 57726e0f7ff167940380738fe63f552184355bd2 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 19 Apr 2020 22:20:45 +0200 Output youtube-dl to /dev/null. Diffstat: M subtitle-paste | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/subtitle-paste b/subtitle-paste @@ -14,7 +14,7 @@ url="$1" cd "${pastebase}" tmpfile="$(mktemp -u p-XXXXXXXXXXXXX)" -youtube-dl -q --write-sub --skip-download -o "${tmpfile}" "${url}" +youtube-dl -q --write-sub --skip-download -o "${tmpfile}" "${url}" 2>/dev/null ofile="$(basename $(find . -name "${tmpfile}.*"))" [ -z "${ofile}" ] && exit 1