"Piping to a file" is not a legal operation in bash
(or any other shell). The thing following a |
has to be a command. If you want to redirect the output from the git
operation into the file, use the redirect operator >
:
git pull > $STD_OUT