From e5eaab0b6ed353e73357499d5c07c7f416beed39 Mon Sep 17 00:00:00 2001 From: rf Date: Sat, 24 Sep 2022 22:25:27 -0500 Subject: [PATCH] fix bash --- insert-posts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/insert-posts.sh b/insert-posts.sh index 3229366..d1cb1ed 100755 --- a/insert-posts.sh +++ b/insert-posts.sh @@ -67,9 +67,9 @@ for file in $(ls "$BLOG_DIR/posts"); do title=$(sed -n '3p' $target_file | tr -d '\n') content=$(sed -n '4,$p' $target_file | tr -d '\n') - content=${1//&/&} - content=${s//'"'/"} - content=${s//"'"/‘} + content=${content//&/&} + content=${content//'"'/"} + content=${content//"'"/‘} insert_post "$date" "$slug" "$title" "$content" done