diff --git a/DEV1.1/.~lock.cours DEV 1.1.odt# b/DEV1.1/.~lock.cours DEV 1.1.odt# new file mode 100644 index 0000000..a1e37f9 --- /dev/null +++ b/DEV1.1/.~lock.cours DEV 1.1.odt# @@ -0,0 +1 @@ +,benji,IFP3251245,18.09.2026 11:26,file:///home/benji/.config/libreoffice/4; \ No newline at end of file diff --git a/DEV1.1/cours DEV 1.1.odt b/DEV1.1/cours DEV 1.1.odt index 1670eb8..5a26810 100644 Binary files a/DEV1.1/cours DEV 1.1.odt and b/DEV1.1/cours DEV 1.1.odt differ diff --git a/MATHS/R1.06.odt b/MATHS/R1.06.odt index 71c0b55..38008a7 100644 Binary files a/MATHS/R1.06.odt and b/MATHS/R1.06.odt differ diff --git a/update.sh b/update.sh index c3937f7..3aea72d 100755 --- a/update.sh +++ b/update.sh @@ -3,18 +3,27 @@ TARGET_DIR="$HOME/Documents/COURS" # Navigate to target directory -cd "$TARGET_DIR" || { echo "Directory not found"; exit 1; } +cd "$TARGET_DIR" || { + echo "Directory not found" + exit 1 +} # Pull remote changes rebase-style to prevent messy merge commits -git pull --rebase --autostash || { echo "Git pull failed"; exit 1; } +git pull --rebase --autostash || { + echo "Git pull failed" + exit 1 +} # Stage all files git add -A # Commit only if there are actual changes staged if ! git diff-index --quiet HEAD --; then - git commit -m "sync: $(date +'%Y-%m-%d %H:%M')" - git push || { echo "Git push failed"; exit 1; } + git commit -m "sync: $(date +'%Y-%m-%d %H:%M')" + git push || { + echo "Git push failed" + exit 1 + } else - echo "No changes to commit." + echo "No changes to commit." fi