From 93767a2723362b44c3265ff2e8714bb70e343428 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Sat, 31 Jul 2021 21:12:43 -0700 Subject: [PATCH] LDoc: fix message in gendoc.sh script --- .ldoc/gendoc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.ldoc/gendoc.sh b/.ldoc/gendoc.sh index 4233611..93a1389 100755 --- a/.ldoc/gendoc.sh +++ b/.ldoc/gendoc.sh @@ -34,8 +34,9 @@ echo -e "\ncopying textures ..." mkdir -p "${d_data}" texture_count=0 for png in $(find "${d_root}/textures" -maxdepth 1 -type f -name "*.png"); do - if test -f "${d_data}/$(basename ${png})"; then - echo "WARNING: not overwriting existing file: ${png}" + t_png="${d_data}/$(basename ${png})" + if test -f "${t_png}"; then + echo "WARNING: not overwriting existing file: ${t_png}" else cp "${png}" "${d_data}" texture_count=$((texture_count + 1))