I have a cron and when it runs in the e-mail it states
/bin/bash: git command not found
git works fine via terminal but how can I add it to /bin/bash?
I have a cron and when it runs in the e-mail it states
/bin/bash: git command not found
git works fine via terminal but how can I add it to /bin/bash?
Presumably the cron job runs under another user which has an empty profile. This means git is not in the path.
The easiest way to fix this i to use the full path to git in the cron job.
You can find the full path to git by the command:which git
which git.