Remove errexit and cleanup on INT too

This commit is contained in:
Joshua Boniface 2018-12-14 18:43:50 -05:00
parent 26e44854f6
commit a7cdab9ae3

View File

@ -4,7 +4,6 @@
# Places the output .deb file in the parent directory
set -o xtrace
set -o errexit
set -o nounset
package_temporary_dir="`mktemp -d`"
@ -16,6 +15,7 @@ cleanup() {
test -d "$package_temporary_dir" && rm -r "$package_temporary_dir"
}
trap cleanup EXIT
trap cleanup INT
docker build . -t "$image_name" -f ./Dockerfile.debian_package
docker run --rm -v "$package_temporary_dir:/temp" "$image_name" cp -r /dist /temp/