Standardize posts' file name in tool scripts.
This commit is contained in:
parent
ad7d8ac1c9
commit
c242cf8455
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue