PATH definition and proper command line output.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Stanislav Nikitin 2024-07-20 00:03:21 +05:00
parent b4e9d9ec58
commit 48dda3455b
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -1,13 +1,11 @@
#!/bin/bash
# Entrypoint that handles both GitHub/Gitea actions things and direct commands execution.
echo "----------"
echo "Launching command:"
echo "$@"
echo "----------"
CMD=$*
# Just ensure we have PATH defined properly.
PATH="${PATH}:/usr/bin/:/usr/sbin/:/bin/:/usr/local/bin/:/opt/bin/"
if [ "${CMD}" == "" ]; then
CMD="${INPUT_COMMAND}"
fi
@ -17,4 +15,9 @@ if [ "${CMD}" == "" ]; then
exit 1
fi
echo "----------"
echo "Launching command:"
echo "${CMD}"
echo "----------"
"${CMD}"