From 11e959d4808d56f68acad4fb62fd0ac9c9e637a2 Mon Sep 17 00:00:00 2001 From: Karthik Bhat Date: Fri, 24 Apr 2020 02:09:24 +0530 Subject: [PATCH] Add po backups removal script --- src/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/build.sh b/src/build.sh index 4ae9882..985288e 100755 --- a/src/build.sh +++ b/src/build.sh @@ -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 @@ -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)