From 45a5d182450a1c100ae8bc2e713a02551b82e1df Mon Sep 17 00:00:00 2001 From: H0mire Date: Mon, 6 May 2024 22:21:35 +0200 Subject: [PATCH] removed debugging stuff --- update-dots.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-dots.sh b/update-dots.sh index 40a1875b..ba67ad32 100644 --- a/update-dots.sh +++ b/update-dots.sh @@ -58,7 +58,7 @@ if ! git fetch; then fi # Check if there are any changes -if [[ ! $(git rev-list HEAD...origin/$current_branch --count) -eq 0 ]]; then +if [[ $(git rev-list HEAD...origin/$current_branch --count) -eq 0 ]]; then echo "Repository is already up-to-date. Do not run git pull before this script. Exiting." exit 0 fi @@ -158,7 +158,7 @@ else fi # Then update the repository -if ! git pull; then +if git pull; then echo "Git pull successful." else # If the pull failed, clone the repository to a temporary folder and copy the files from there