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