diff --git a/update.sh b/update.sh index 4dbde1d..e03237a 100755 --- a/update.sh +++ b/update.sh @@ -1,14 +1,11 @@ #!/bin/sh # Set PATH so cron can find git, date, ssh, etc. -export PATH="/usr/local/bin:/usr/bin:/bin" +export PATH="/usr/local/bin:/usr/bin:/bin:$PATH" # Explicitly set target directory (don't rely on $HOME in cron) TARGET_DIR="/home/benji/Documents/COURS" -# If using SSH keys, specify the key for Git -export GIT_SSH_COMMAND="ssh -i /home/benji/.ssh/git -o IdentitiesOnly=yes" - # Navigate to target directory cd "$TARGET_DIR" || { echo "Directory not found"