Skip to content

Commit

Permalink
Standardize posts' file name in tool scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Aug 10, 2020
1 parent 164d200 commit 0f52e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _scripts/sh/dump_lastmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ main() {

for _file in $(find ${POST_DIR} -type f \( -iname \*.md -o -iname \*.markdown \))
do
_filename=$(basename $_file | sed 's/[0-9]\([0-9]*-\)//g;s/\..*//' ) # remove date and extension
_filename=$(basename $_file | sed 's/-\-\+/-/;s/[[:digit:]]\([[:digit:]]*-\)//g;s/\..*//' ) # remove date and extension

if _has_changed "$_file"; then
_dump "$_filename" "$_file"
Expand Down

0 comments on commit 0f52e1e

Please sign in to comment.