From ac32959add3a1fdac025640fec1eb00ee9f6d203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 18 Feb 2025 09:06:58 +0100 Subject: [PATCH] phpsg.sh: filter out cfg files in find command. --- phpsg.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/phpsg.sh b/phpsg.sh index ffa0f46..15140e3 100755 --- a/phpsg.sh +++ b/phpsg.sh @@ -59,12 +59,9 @@ do fi done -for file in $(find $SOURCE_DIR -type f) +for file in $(find $SOURCE_DIR -type f -not -name '*.cfg.php') do - if [[ $file = *.cfg.php ]] - then - continue - elif [[ $file = *.html.php ]] || [[ $file = *.xml.php ]] + if [[ $file = *.php ]] then DEST_FILE="${OUTPUT_DIR}/${file:${#SOURCE_DIR}:-4}" if ! [ "$file" -nt "$DEST_FILE" ]