update.sh: Fixed execution of missing configure script

master
Felix Stupp 6 years ago
parent b6eab075e0
commit 8282b359ac
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -7,12 +7,15 @@ if [ $# -eq 1 ]; then
fi fi
PREFIX=release; PREFIX=release;
CONF_SCRIPT="configure.sh";
git pull --tags > /dev/null; git pull --tags > /dev/null;
TAG=$(git tag --list | grep "^$PREFIX-" | sort -r | head -n 1); TAG=$(git tag --list | grep "^$PREFIX-" | sort -r | head -n 1);
if git verify-tag --raw "$TAG" 2>&1 | grep "TRUST_ULTIMATE" > /dev/null; then if git verify-tag --raw "$TAG" 2>&1 | grep "TRUST_ULTIMATE" > /dev/null; then
git checkout "$TAG"; git checkout "$TAG";
./configure.sh; if [ -f "$CONF_SCRIPT" ]; then
./$CONF_SCRIPT;
fi
else else
echo "Invalid or missing signature for $TAG" >&2; echo "Invalid or missing signature for $TAG" >&2;
exit 1; exit 1;

Loading…
Cancel
Save