You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
508 B
21 lines
508 B
#!/bin/sh -e
|
|
|
|
# SPDX-FileCopyrightText: Copyright 2025 crueter
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
if [ "$KEY" = null ]; then
|
|
if [ "$SHA" != null ]; then
|
|
KEY=$(echo "$SHA" | cut -c1-4)
|
|
elif [ "$GIT_VERSION" != null ]; then
|
|
KEY="$GIT_VERSION"
|
|
elif [ "$TAG" != null ]; then
|
|
KEY="$TAG"
|
|
elif [ "$VERSION" != null ]; then
|
|
KEY="$VERSION"
|
|
else
|
|
echo "!! No valid key could be determined for $PACKAGE_NAME. Must define one of: key, sha, tag, version, git_version"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
export KEY
|