diff --git a/build.sh b/build.sh index 127f8f6..5bba76b 100755 --- a/build.sh +++ b/build.sh @@ -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'