mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
6d6ef99f11
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
19 lines
295 B
Bash
Executable File
19 lines
295 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
for arg in "$@"; do
|
|
if [[ ${arg} != "" ]]; then
|
|
args[${#args[@]}]="${arg}"
|
|
fi
|
|
done
|
|
|
|
out=$(/versionsapi "${args[@]}")
|
|
if [[ $? -ne 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ${GITHUB_ACTIONS} == "true" ]]; then
|
|
echo "output=${out}" | tee "${GITHUB_ENV}"
|
|
else
|
|
echo "${out}"
|
|
fi
|