Compare commits
No commits in common. "1d09ac59967d06e2c070d6369a7003f8c72d4d70" and "31d15e641686b27e3b348eb95f1a10107076b68c" have entirely different histories.
1d09ac5996
...
31d15e6416
2 changed files with 56 additions and 52 deletions
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
skip_output: [meta, success]
|
||||
no_tty: true
|
||||
|
||||
commit-msg:
|
||||
commands:
|
||||
lint:convco:
|
||||
run: cat {1} | convco check --from-stdin
|
||||
lint:typos:
|
||||
run: cat {1} | typos -
|
||||
|
||||
pre-commit:
|
||||
parallel: false
|
||||
commands:
|
||||
|
@ -16,7 +19,8 @@ pre-commit:
|
|||
run: shellcheck {staged_files}
|
||||
shfmt:
|
||||
glob: "*.sh"
|
||||
run: shfmt -d -ln bash -i 2 {staged_files}
|
||||
run: shfmt -d -ln bash -i 4 {staged_files}
|
||||
|
||||
pre-push:
|
||||
parallel: false
|
||||
commands:
|
||||
|
|
|
@ -13,9 +13,9 @@ process_args() {
|
|||
escape() {
|
||||
local string
|
||||
string=$1
|
||||
string=${string//"&"/"&"}
|
||||
string=${string//"<"/"<"}
|
||||
string=${string//">"/">"}
|
||||
string=${string//"&"/"&"}
|
||||
printf "%s" "$string"
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ main() {
|
|||
if [[ ${#title} -gt 25 ]]; then
|
||||
title="${title:0:24}…"
|
||||
fi
|
||||
title="<b>$(escape "$title")</b>"
|
||||
title="<b>$title</b>"
|
||||
|
||||
if [ -n "$artist" ]; then
|
||||
if [[ ${#artist} -gt 22 ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue