Skip to content

Commit

Permalink
Merge pull request #30 from codefoxes/hotfix
Browse files Browse the repository at this point in the history
Add po backups removal script
  • Loading branch information
karthikax authored Apr 23, 2020
2 parents 52770a0 + 11e959d commit b899821
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ buildbackend() {
python3 $DIR/build-controls
}

removePOBackups() {
echo "Removing po backups"
rm -rf library/languages/*.po~
rm -rf library/languages/*.pot~
}

if [ -z "$1" ]; then
buildjs
buildcss
Expand All @@ -71,6 +77,7 @@ elif [ "$1" == "--final" ]; then
buildcss
buildbackend
buildfonts
removePOBackups
printf "${BGREEN}STEP 3: BUNDLING${NC}\n"
rsync -avP --exclude '*.git*' --exclude '*node_modules*' --exclude '*package*' --exclude '*tests*' --exclude '*.DS_Store*' --exclude '*src/build*' --exclude '*src/.env' --exclude 'library/pro*' --exclude 'pro*' --exclude 'todo.txt' ./* --delete ~/Desktop/greenlet
current=$(pwd)
Expand Down

0 comments on commit b899821

Please sign in to comment.