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 Package: egsl
Version: 0.0.32 Version: 0.0.33
Section: custom Section: custom
Priority: optional Priority: optional
Architecture: all Architecture: all

View File

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

View File

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