Files
libarchive/build/release/release.sh
T
Mostyn Bramley-Moore d80d734190 Add some more error checking to shell scripts (#2617)
Exit immediately if a command exits with a non-zero status, and treat
unset variables as an error when substituting.
2025-05-20 10:14:17 +02:00

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