Skip to content

Commit

Permalink
Execute subcommand without wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostas Livieratos committed Jul 30, 2020
1 parent d274eac commit c5d3ac5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ echo ${KUBE_CONFIG_DATA} | base64 -d > kubeconfig
export KUBECONFIG=kubeconfig
# export HELM_PLUGINS=/usr/local/.helm/plugins/

result="$($1)"
$1
# result="$($1)"

status=$?
echo ::set-output name=result::$result
echo "$result"
if [[ $status -eq 0 ]]; then exit 0; else exit 1; fi
# status=$?
# echo ::set-output name=result::$result
# echo "$result"
# if [[ $status -eq 0 ]]; then exit 0; else exit 1; fi

0 comments on commit c5d3ac5

Please sign in to comment.