- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
#!/bin/sh
rm -rf /home/project/*
FOLDER=/home/project
cp ./*.php $FOLDER
cp -r css img js $FOLDER
FILES=$(find css js templates -type f -regex '.*.\(js\|css\|twig\)')
for f in $FILES; do
echo "$f"|grep twig 1>/dev/null
r=$?
if [ "$r" -eq 0 ]; then
minify --type html "$f" --output $FOLDER
else
minify "$f" --output $FOLDER
fi
done
Antifriz_otrabotanyi 02.12.2019 14:02 # −1
codershitter 02.12.2019 15:25 # 0
guest8 03.12.2019 00:53 # −1