summaryrefslogtreecommitdiff
path: root/add_to_rss.sh
diff options
context:
space:
mode:
Diffstat (limited to 'add_to_rss.sh')
-rwxr-xr-xadd_to_rss.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_to_rss.sh b/add_to_rss.sh
index d1e5da7..0c4e0b3 100755
--- a/add_to_rss.sh
+++ b/add_to_rss.sh
@@ -1,5 +1,5 @@
BASE=$(basename $1|sed s/txt$/html/)
-FILE=$(cat $1|sed -E ':a;N;$!ba; s/\//\\\//g ; s/\r{0,1}\n/<\\\/p>/g;s/^/<p>/;')
+FILE=$(cat $1|sed -E ':a;N;$!ba; s/\/\/\///g ;s/\//\\\//g ; s/\r{0,1}\n/<\\\/p>/g;s/^/<p>/;')
echo $BASE
sed -i "/<\!--item-->/s/$/\n\<item><pubDate><\/pubDate><guid>https:\/\/b4rkod.net.tr\/$BASE<\/guid><title>$BASE<\/title><link>https:\/\/b4rkod.net.tr\/blogposts\/$BASE<\/link><description><![CDATA[$FILE]]><\/description><\/item>/" "$HOME/www/source/rss.xml"