diff --git a/configuration/manager/pollGit.sh b/configuration/manager/pollGit.sh index a359a975e02ddd0cdf6cf928227309a75dda6039..3bf441c5fb72c43606e0c1a36c353d8976b9a429 100644 --- a/configuration/manager/pollGit.sh +++ b/configuration/manager/pollGit.sh @@ -15,4 +15,8 @@ do ssh -o "StrictHostKeyChecking no" ubuntu@$ip sudo git -C /home/ubuntu/dcsg2003/ reset --hard origin/main done -crontab < /home/ubuntu/dcsg2003/configuration/manager/cron \ No newline at end of file +crontab < /home/ubuntu/dcsg2003/configuration/manager/cron +if [ $? != 0 ] +then + discord_error "Couldn't update crontab to new version." +fi \ No newline at end of file