Skip to content

Commit

Permalink
Merge pull request #37 from dknight/fixed-stray-warning
Browse files Browse the repository at this point in the history
fix: warning: stray \ before white space
  • Loading branch information
hmngwy authored Sep 9, 2024
2 parents a51f47d + ce43e84 commit 6242518
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions share/jenny/lib/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function is_installed() {

function get_total_post_count() {
local list=("$@")
local non_draft=($(printf "%s\n" "${list[@]}" | $GREP -E '^[0-9]{4}\-[0-9]{2}\-[0-9]{2}(.*)'))
local non_draft=($(printf "%s\n" "${list[@]}" | $GREP -E '^[0-9]{4}-[0-9]{2}-[0-9]{2}(.*)'))
local count=0
for f1 in "${non_draft[@]}"; do
if ! is_scheduled "$f1"; then
Expand Down Expand Up @@ -177,7 +177,7 @@ function is_changed() {
}

function get_title() {
echo $($GREP -E "^\#\ (.*?)" "$1" | \
echo $($GREP -E "^#\s(.*?)" "$1" | \
$SED 's/^\#\ \(.*\)/\1/' | \
$SED -r 's/\\(.)/\1/g' )
}
Expand All @@ -200,3 +200,4 @@ function get_page_new_url() {
echo "$ROOT/page/$(( page + 1 )).html"
fi
}

0 comments on commit 6242518

Please sign in to comment.