change exit to be command specific
All checks were successful
Publish / build_and_publish_docker_image (push) Successful in 1m39s
All checks were successful
Publish / build_and_publish_docker_image (push) Successful in 1m39s
prevents removing old builds from exiting the script
This commit is contained in:
parent
5d4dc026f3
commit
8effd842b9
@ -22,8 +22,6 @@
|
|||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Default the TZ environment variable to UTC.
|
# Default the TZ environment variable to UTC.
|
||||||
TZ=${TZ:-UTC}
|
TZ=${TZ:-UTC}
|
||||||
export TZ
|
export TZ
|
||||||
@ -47,7 +45,7 @@ node --version
|
|||||||
rm -r config/ defaultconfigs/ config-overrides/ kubejs/ mods/
|
rm -r config/ defaultconfigs/ config-overrides/ kubejs/ mods/
|
||||||
rm -r ./Monifactory/dist/*
|
rm -r ./Monifactory/dist/*
|
||||||
echo "Building server..."
|
echo "Building server..."
|
||||||
node ./Monifactory/build/index.ts build-server
|
node ./Monifactory/build/index.ts build-server || exit 1
|
||||||
echo "Copying files"
|
echo "Copying files"
|
||||||
cp -r ./Monifactory/dist/server/* .
|
cp -r ./Monifactory/dist/server/* .
|
||||||
./pack-mode-switcher.sh h
|
./pack-mode-switcher.sh h
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user