Catch result from shell command

Hi all!

Running a shell_command from HASS to pull my updated config from GIT. Would it be possible to somehow print the result of that pull (or the error) to my frontend?

Thanks!