Skip to content

Commit

Permalink
remove junk files from outdir in prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Sep 11, 2017
1 parent 7aef4e2 commit 2b93ced
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,15 @@ php ./compile_html.php
echo 'Copying resources...'

cp -r img out/img
cp favicon.ico out/

if [[ $ESP_PROD ]]; then
echo 'Cleaning junk files...'
find out/ -name "*.orig" -delete
find out/ -name "*.xcf" -delete
find out/ -name "*~" -delete
find out/ -name "*.bak" -delete
find out/ -name "*.map" -delete
fi

echo 'ESPTerm front-end ready'

0 comments on commit 2b93ced

Please sign in to comment.