From 2b93cedd3fca3350cfa0ca8aef92630ca5fe8501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 11 Sep 2017 22:59:12 +0200 Subject: [PATCH] remove junk files from outdir in prod build --- build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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'