diff options
| author | Fuwn <[email protected]> | 2023-09-21 15:01:19 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-21 15:01:19 -0700 |
| commit | 6d5f7b5de2a5268c786fbef41e86921f6b8d248b (patch) | |
| tree | 67696812db9527f2eb565eff290431300fee7388 | |
| parent | feat(suzuri): switch to multi-line cat (diff) | |
| download | suzuri-6d5f7b5de2a5268c786fbef41e86921f6b8d248b.tar.xz suzuri-6d5f7b5de2a5268c786fbef41e86921f6b8d248b.zip | |
fix(suzuri): shell-checks
| -rwxr-xr-x | suzuri | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |