PATH definition and proper command line output.
This commit is contained in:
		| @@ -1,13 +1,11 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| # Entrypoint that handles both GitHub/Gitea actions things and direct commands execution. | # Entrypoint that handles both GitHub/Gitea actions things and direct commands execution. | ||||||
| echo "----------" |  | ||||||
| echo "Launching command:" |  | ||||||
| echo "$@" |  | ||||||
| echo "----------" |  | ||||||
|  |  | ||||||
| CMD=$* | CMD=$* | ||||||
|  |  | ||||||
|  | # Just ensure we have PATH defined properly. | ||||||
|  | PATH="${PATH}:/usr/bin/:/usr/sbin/:/bin/:/usr/local/bin/:/opt/bin/" | ||||||
|  |  | ||||||
| if [ "${CMD}" == "" ]; then | if [ "${CMD}" == "" ]; then | ||||||
|     CMD="${INPUT_COMMAND}" |     CMD="${INPUT_COMMAND}" | ||||||
| fi | fi | ||||||
| @@ -17,4 +15,9 @@ if [ "${CMD}" == "" ]; then | |||||||
|     exit 1 |     exit 1 | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | echo "----------" | ||||||
|  | echo "Launching command:" | ||||||
|  | echo "${CMD}" | ||||||
|  | echo "----------" | ||||||
|  |  | ||||||
| "${CMD}" | "${CMD}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user