diff --git a/deployProject.sh b/deployProject.sh index 02bc6ad..222ea39 100644 --- a/deployProject.sh +++ b/deployProject.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash set -uo pipefail -if [[ -d dist/ ]]; then - rm -r dist/; +if [[ ! -e dist ]]; then + mkdir dist; fi - -cp -r target/ dist/; +rm -r dist/* 2>/dev/null; +cd target/; +jar cf ../dist/zeitlaeufer.jar **/*; +cd ..;