Exit immediately if a command exits with a non-zero status, and treat unset variables as an error when substituting.
11 lines
211 B
Bash
Executable File
11 lines
211 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
ID=$(docker build -q -f build/release/Dockerfile .)
|
|
if [ -z "$ID" ]; then
|
|
echo "Failed to build docker image"
|
|
exit 1
|
|
else
|
|
docker run "$ID" sh -c "tar -c -f - libarchive-*" | tar -x -f -
|
|
fi
|