Fix build script

This commit is contained in:
Lucas Schwiderski 2023-11-23 15:23:02 +01:00
parent 4c96bcf5ba
commit b86ea337d1
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@ RUN set -eux; \
apt-get install --no-install-recommends -y \
build-essential \
curl \
git \
gpg \
jq \
libatk1.0-dev \

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -eu
@ -16,7 +16,7 @@ cd "repo"
if [ -n "${PR:-}" ]; then
title "PR: $(echo "$PR" | jq '.number') - $(echo "$PR" | jq '.title')"
ref="pr-$(echo "$PR" | jq '.number')-$(git rev-parse --short $(cat .git/ref || echo "HEAD")) 2>/dev/null || echo 'manual')"
ref="pr-$(echo "$PR" | jq '.number')-$(git rev-parse --short "$(cat .git/ref || echo "HEAD")" 2>/dev/null || echo 'manual')"
else
ref=$(git describe --tags)
fi