phpsg.sh: filter out cfg files in find command.
This commit is contained in:
parent
6568c8e96d
commit
ac32959add
7
phpsg.sh
7
phpsg.sh
@ -59,12 +59,9 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in $(find $SOURCE_DIR -type f)
|
for file in $(find $SOURCE_DIR -type f -not -name '*.cfg.php')
|
||||||
do
|
do
|
||||||
if [[ $file = *.cfg.php ]]
|
if [[ $file = *.php ]]
|
||||||
then
|
|
||||||
continue
|
|
||||||
elif [[ $file = *.html.php ]] || [[ $file = *.xml.php ]]
|
|
||||||
then
|
then
|
||||||
DEST_FILE="${OUTPUT_DIR}/${file:${#SOURCE_DIR}:-4}"
|
DEST_FILE="${OUTPUT_DIR}/${file:${#SOURCE_DIR}:-4}"
|
||||||
if ! [ "$file" -nt "$DEST_FILE" ]
|
if ! [ "$file" -nt "$DEST_FILE" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user