From 1e1f257cf8ef9619795eb42c63ef92e35b52fe54 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 2 May 2022 17:41:42 -0300 Subject: bin/{tmp,pb}: ShellCheck --- bin/pb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/pb') diff --git a/bin/pb b/bin/pb index cb9ef89..6ef0a22 100755 --- a/bin/pb +++ b/bin/pb @@ -136,8 +136,9 @@ SLUG="${SLUG:-$(echo "$TITLE" | slugify)}" OUT="$(outname "$DATE" "$SLUG")" URL="$(url "$DATE" "$SLUG")" -trap "rm -f $OUT-tmp" EXIT -cat /dev/stdin <<-EOF | vipe > "$OUT-tmp" +# shellcheck disable=2064 +trap "rm -f '$OUT-tmp'" EXIT +cat <<-EOF | vipe > "$OUT-tmp" --- title: $TITLE -- cgit v1.2.3