mirror of
https://github.com/nicholaswilde/recipes.git
synced 2026-02-04 17:55:38 +00:00
fix: conditional cp image
Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
This commit is contained in:
@ -147,7 +147,9 @@ function move_files(){
|
||||
new_markdown_path="${DOCS_PATH}/${category}/${lower}.md"
|
||||
test -d "${DOCS_PATH}/${category}" || (printf "Folder does not exist, %s\n" "${DOCS_PATH}/${category}" && exit 1)
|
||||
[ "${DEBUG}" = true ] && printf "new_markdown_path: %s\n" "${new_markdown_path}"
|
||||
cp "${image_path}" "${new_image_path}"
|
||||
if [ -f "${image_path}" ]; then
|
||||
cp "${image_path}" "${new_image_path}"
|
||||
fi
|
||||
mv "${markdown_path}" "${new_markdown_path}"
|
||||
spell_check "${new_markdown_path}" "${recipe_path}"
|
||||
check_links "${new_markdown_path}"
|
||||
|
||||
Reference in New Issue
Block a user