made so it checks if repo is already up to date since, no checksum cache is implemented yet

This commit is contained in:
H0mire
2024-05-04 11:10:00 +02:00
parent 8ca5dd3cfa
commit e748132499
+13
View File
@@ -26,6 +26,19 @@ function file_in_excludes() {
return 1
}
# fetch the latest version of the repository
if ! git fetch; then
echo "Failed to fetch the latest version of the repository. Exiting."
exit 1
fi
# Check if there are any changes
if [[ $(git rev-list HEAD...origin/main --count) -eq 0 ]]; then
echo "No changes found. Exiting."
exit 0
fi
# Then check which files have been modified by the user since the last update to preserve user configurations
modified_files=()