diff --git a/README.md b/README.md index d732ff7..fb5845c 100644 --- a/README.md +++ b/README.md @@ -499,8 +499,8 @@ $ gsl [ARG] [ARG]: add | -A : Must set a Position number before [FILE] Max posts in list is set in gsl.conf - remove | -R : No Position to set, just [FILE]. Replace post position if post not exists in list + remove | -R : No Position to set, just [FILE]. add/remove will build last-posts-list.html create | -C : rebuild last-posts-list.html diff --git a/usr/local/bin/gsl b/usr/local/bin/gsl index d6419d6..e1605be 100755 --- a/usr/local/bin/gsl +++ b/usr/local/bin/gsl @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 0.0.3 +# Version: 0.0.3.1 # file: gsl # Folder: /usr/local/bin # By echolib diff --git a/var/lib/gsl/README.md b/var/lib/gsl/README.md index d732ff7..fb5845c 100644 --- a/var/lib/gsl/README.md +++ b/var/lib/gsl/README.md @@ -499,8 +499,8 @@ $ gsl [ARG] [ARG]: add | -A : Must set a Position number before [FILE] Max posts in list is set in gsl.conf - remove | -R : No Position to set, just [FILE]. Replace post position if post not exists in list + remove | -R : No Position to set, just [FILE]. add/remove will build last-posts-list.html create | -C : rebuild last-posts-list.html diff --git a/var/lib/gsl/helps/gsl_help b/var/lib/gsl/helps/gsl_help index 45d12eb..0aac5c0 100644 --- a/var/lib/gsl/helps/gsl_help +++ b/var/lib/gsl/helps/gsl_help @@ -48,8 +48,8 @@ $ gsl [ARG] [ARG]: add | -A : Must set a Position number before [FILE] Max posts in list is set in gsl.conf - remove | -R : No Position to set, just [FILE]. Replace post position if post not exists in list + remove | -R : No Position to set, just [FILE]. add/remove will build last-posts-list.html create | -C : rebuild last-posts-list.html diff --git a/var/lib/gsl/scripts/gsl__post_manager b/var/lib/gsl/scripts/gsl__post_manager index 1d10583..8b3dfa6 100644 --- a/var/lib/gsl/scripts/gsl__post_manager +++ b/var/lib/gsl/scripts/gsl__post_manager @@ -127,50 +127,7 @@ do ;; esac ;; - - listing) - # Continue if post changed - [[ "$gsl_post_new_hash" ]] \ - && gsl__logs_print \ - "$gsl_log_e" \ - "Listing" \ - "$gsl_listing_process" \ - "file ; $gsl_post has changed !" \ - "$gsl_file_db_post" \ - && continue - - case "$gsl_listing_process" in - add) - gsl__page_sidebar - ;; - - remove) - gsl__page_sidebar - ;; - esac - ;; - - post-list) - case "$gsl_db_post_status" in - wip|www) - gsl_process="wip" - gsl__post_begin - gsl__get_needed_headers - gsl__page_prepare_datas - gsl__page_listing_create "$gsl_post_list" - ;; - *) - gsl__logs_print \ - "$gsl_log_e" \ - "Post" \ - "Status" \ - "$gsl_db_post_status: $gsl_post not Converted" \ - "$gsl_file_db_posts" - gsl_checker_err=true - ;; - esac - ;; - + www) gsl_checker_war=true case "$2" in diff --git a/var/lib/gsl/scripts/gsl__sidebar b/var/lib/gsl/scripts/gsl__sidebar index f9b1bc0..c8d6e89 100644 --- a/var/lib/gsl/scripts/gsl__sidebar +++ b/var/lib/gsl/scripts/gsl__sidebar @@ -53,10 +53,10 @@ case "$2" in # Post exists (maybe with different position) gsl__logs_print \ "$gsl_log_w" \ - "Sidebar" \ - "Post" \ - "$gsl_listing_process $4 ; already in list !" \ - "$gsl_dir_domain_listings/" + "Sidebar" \ + "Post" \ + "$gsl_listing_process $4 ; already in list !" \ + "$gsl_dir_domain_listings/" gsl_checker_war=true elif [[ "$gsl_post_old_inlist" ]];then @@ -65,10 +65,10 @@ case "$2" in rm -f "$gsl_dir_domain_listings/$gsl_post_old_inlist" gsl__logs_print \ "$gsl_log_w" \ - "Sidebar" \ - "Post" \ - "$gsl_listing_process $4 ; replace $gsl_post_old_inlist !" \ - "$gsl_dir_domain_listings/$gsl_post_old_inlist" + "Sidebar" \ + "Post" \ + "$gsl_listing_process $4 ; replace $gsl_post_old_inlist !" \ + "$gsl_dir_domain_listings/$gsl_post_old_inlist" gsl_checker_war=true gsl__page_sidebar $2 $3 $4 else