Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
fix(bin): add ignore flag to tar command if .bmfignore file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantine Karnaukhov committed Oct 25, 2018
1 parent 4e87ddc commit bd4d57a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/bundle_mp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ chown -R 1000.1000 .last_version
# Convert encoding for lang files
find ./.last_version -name "*.php" -path "*lang*" -exec iconv -f utf-8 -t windows-1251 {} -o {} \;

if [ -e .bmfignore ]; then
ignore="-X .bmfignore"
fi

# Create bundle
tar -czf .last_version.tar.gz .last_version -X bxignore
tar -czf .last_version.tar.gz .last_version $ignore

# Little clean up
rm -rf .last_version

0 comments on commit bd4d57a

Please sign in to comment.