Remove _cleanup now that builds don't run in sequence

This commit is contained in:
Vidar Holen 2019-07-31 21:32:13 -07:00
parent 3fdc6babb2
commit 71a4053e8c
1 changed files with 0 additions and 8 deletions

View File

@ -1,9 +1,5 @@
#!/bin/bash #!/bin/bash
_cleanup(){
rm -rf dist shellcheck || true
}
build_linux() { build_linux() {
# Linux Docker image # Linux Docker image
name="$DOCKER_BASE" name="$DOCKER_BASE"
@ -30,7 +26,6 @@ build_linux() {
sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine
docker build -f Dockerfile.alpine -t "$name:current" . docker build -f Dockerfile.alpine -t "$name:current" .
docker run "$name:current" sh -c 'shellcheck --version' docker run "$name:current" sh -c 'shellcheck --version'
_cleanup
} }
build_aarch64() { build_aarch64() {
@ -50,7 +45,6 @@ build_armv6hf() {
do do
cp "shellcheck" "deploy/shellcheck-$tag.linux-armv6hf"; cp "shellcheck" "deploy/shellcheck-$tag.linux-armv6hf";
done done
_cleanup
} }
build_windows() { build_windows() {
@ -60,7 +54,6 @@ build_windows() {
do do
cp "dist/build/ShellCheck/shellcheck.exe" "deploy/shellcheck-$tag.exe"; cp "dist/build/ShellCheck/shellcheck.exe" "deploy/shellcheck-$tag.exe";
done done
_cleanup
} }
build_osx() { build_osx() {
@ -77,6 +70,5 @@ build_osx() {
do do
cp "dist/build/shellcheck/shellcheck" "deploy/shellcheck-$tag.darwin-x86_64"; cp "dist/build/shellcheck/shellcheck" "deploy/shellcheck-$tag.darwin-x86_64";
done done
_cleanup
} }