Skip to content

Commit

Permalink
build-dist: fix conditional; formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Nov 30, 2024
1 parent e7e741a commit e6c6ed1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ for a in $@; do
--linux)
skip_windows="yes"
;;
--*)
echo "error: bad argument: $a"
exit 1
;;
--*)
echo "error: bad argument: $a"
exit 1
;;
*)
command="$@"
break
command="$@"
break
;;
esac
shift
Expand All @@ -45,7 +45,7 @@ cross_run() {
dockerfile="./docker/builder/Dockerfile.cross"
tag=${BUILDER_TAG:-"evebox/builder:cross"}
env
if [ -z "${GITHUB_REPOSITORY}" && test -t ]; then
if [ -z "${GITHUB_REPOSITORY}" -a -t ]; then
it="-it"
else
it=""
Expand All @@ -54,8 +54,8 @@ cross_run() {
--build-arg REAL_UID="$(id -u)" \
--build-arg REAL_GID="$(id -g)" \
--cache-from ${tag} \
-t ${tag} \
-f ${dockerfile} .
-t ${tag} \
-f ${dockerfile} .
${ECHO} docker run --rm ${it} --privileged \
-v "$(pwd):/src:z" \
-v /var/run/docker.sock:/var/run/docker.sock:z \
Expand All @@ -79,6 +79,6 @@ else
cross_run aarch64-unknown-linux-musl ./packaging/build-deb.sh arm64

if [[ "${skip_windows}" != "yes" ]]; then
cross_run x86_64-pc-windows-gnu make dist
cross_run x86_64-pc-windows-gnu make dist
fi
fi

0 comments on commit e6c6ed1

Please sign in to comment.