aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-21 15:01:19 -0700
committerFuwn <[email protected]>2023-09-21 15:01:19 -0700
commit6d5f7b5de2a5268c786fbef41e86921f6b8d248b (patch)
tree67696812db9527f2eb565eff290431300fee7388
parentfeat(suzuri): switch to multi-line cat (diff)
downloadsuzuri-6d5f7b5de2a5268c786fbef41e86921f6b8d248b.tar.xz
suzuri-6d5f7b5de2a5268c786fbef41e86921f6b8d248b.zip
fix(suzuri): shell-checks
-rwxr-xr-xsuzuri4
1 files changed, 2 insertions, 2 deletions
diff --git a/suzuri b/suzuri
index e018f56..9c66f14 100755
--- a/suzuri
+++ b/suzuri
@@ -35,14 +35,14 @@ else
curl_command+=("https://sumi.news/")
fi
-body="$("${curl_command[@]}" | pup '.mt-6' | html2md -i)"
+body="$("${curl_command[@]}" | pup '.mt-6' | html2md -i || true)"
if [[ -n "${SUZURI_REVERSE}" ]]; then
body="$(echo "${body}" | tac)"
fi
if [[ -n "${SUZURI_MINIMAL}" ]]; then
- body="$(echo "${body}" | grep "##" | sed "s/##//")"
+ body="$(echo "${body}" | grep "##" | sed "s/##//" || true)"
fi
if [[ -n "${SUZURI_RAW}" ]]; then