Fix : sync no more done on make and www

This commit is contained in:
Cyrille L 2022-04-15 18:56:56 +02:00
parent d62043ac29
commit fc7460ce78
3 changed files with 14 additions and 10 deletions

View File

@ -1,5 +1,5 @@
Package: egsl
Version: 0.0.32
Version: 0.0.33
Section: custom
Priority: optional
Architecture: all

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Version: 0.0.32
# Version: 0.0.33
# file: gsl
# Folder: /usr/local/bin
# By echolib
@ -358,7 +358,6 @@ case "$1" in
"$PWD"
gsl_srv_wip="$gsl_site_server/$gsl_site_ndd/wip"
gsl__srv_sync "$gsl_srv_wip"
gsl__loop_posts make
gsl__logs_print \
@ -419,8 +418,6 @@ case "$1" in
"$gsl_site_server"
gsl_srv_www="$gsl_site_server/$gsl_site_ndd/www"
gsl__srv_sync "$gsl_srv_www"
gsl__loop_posts www "$2"
gsl__logs_print \

View File

@ -127,12 +127,12 @@ esac
#======================================================================
gsl__do_italics() {
gsl_stat_italics=0
echo -ne "\r\033[2K: Counting Italics..."
while IFS=: read -r "n" "italic"
do
[[ `awk -v l="$n" 'NR == l && $1 ~ "_link"' "$2"` ]] && continue
[[ `awk -v l="$n" 'NR == l && $1 ~ "link"' "$2"` ]] \
&& continue
if [[ "$italic" ]] && \
[[ `grep "$gsl_mark_italic$italic$gsl_mark_italic" "$2"` ]];then
@ -148,9 +148,16 @@ do
=~ "$italic" ]] \
&& continue
echo -ne "\r\033[2K: Converting Italic... $italic"
# Testing for links
#[[ `awk -v l="$n" 'NR == l' "$2" \
# | grep -oP "(?<=http).*?(?=$italic)"` ]] \
# && awk -v l="$n" 'NR == l' "$2" | grep -oPn "(?<=http).*?(?=$italic)" && sleep 1 && echo \
# && continue
gsl_italic="$gsl_mark_italic$italic$gsl_mark_italic"
gsl_html_italic="<em>$italic</em>"
echo -ne "\r\033[2K: Converting Italic... $italic"
sed -i "s|$gsl_italic|$gsl_html_italic|g" "$2"
;;
esac