Release: only delete `core` file if it exists

pull/162/head v1.4.5
Thomas Buckley-Houston 2018-07-19 14:49:27 +08:00
rodzic 949273a553
commit 26416e267c
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,3 @@
package browsh
var browshVersion = "1.4.4"
var browshVersion = "1.4.5"

Wyświetl plik

@ -13,7 +13,11 @@ NODE_BIN=$PROJECT_ROOT/webext/node_modules/.bin
destination=$PROJECT_ROOT/interfacer/src/browsh/webextension.go
cd $PROJECT_ROOT/webext && $NODE_BIN/webpack
cd $PROJECT_ROOT/webext/dist && rm *.map && rm core
cd $PROJECT_ROOT/webext/dist && rm *.map
if [ -f core ] ; then
# Is this a core dump for some failed process?
rm core
fi
ls -alh .
$NODE_BIN/web-ext build --overwrite-dest
ls -alh web-ext-artifacts