Adding #bug-squashing tag. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 362896689ba4259ba1c6e13ccc3227532448c0aa
(DIR) parent b02c5ebd99e5b485148960a9f1b5225e47a9956c
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 1 Jun 2020 22:47:31 +0200
Adding #bug-squashing tag.
Diffstat:
M modules/hashtags/hashtags.txt | 1 +
M subtitle-paste | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/modules/hashtags/hashtags.txt b/modules/hashtags/hashtags.txt
@@ -343,6 +343,7 @@
#bubble gopher://bitreich.org/9/memecache/bubble.mp4
#budget gopher://bitreich.org/9/memecache/budget.mkv
#bug-reporting gopher://bitreich.org/I/memecache/bug-reporting.png
+#bug-squashing gopher://bitreich.org/g/memecache/bug-squashing.gif
#bug-to-feature gopher://bitreich.org/I/memecache/bug-to-feature.png
#bugfix gopher://bitreich.org/I/memecache/bugfix.jpg
#bugfree gopher://bitreich.org/I/memecache/bugfree.png
(DIR) diff --git a/subtitle-paste b/subtitle-paste
@@ -1,5 +1,7 @@
#!/bin/sh
+set -x
+
export PATH="/home/annna/bin:$PATH"
if [ $# -lt 1 ];
@@ -15,7 +17,9 @@ cd "${pastebase}"
tmpfile="$(mktemp -u p-XXXXXXXXXXXXX)"
youtube-dl -q --write-auto-sub --skip-download -o "${tmpfile}" "${url}" 2>/dev/null
-ofile="$(basename $(find . -name "${tmpfile}.*"))"
+rfile="$(find . -name "${tmpfile}.*")"
+[ -z "${rfile}" ] && exit 1
+ofile="$(basename "${rfile}")"
[ -z "${ofile}" ] && exit 1
if [ $(stat -c%s "${ofile}") -eq 0 ];