sync: 2026-09-28 19:23
This commit is contained in:
1 parent
1794f795a5
commit
0751ca592d
1 file changed
+1
-4
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user