forked from Shinonome/dots-hyprland
now with current branch
This commit is contained in:
+3
-3
@@ -26,6 +26,7 @@ function file_in_excludes() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
# fetch the latest version of the repository
|
# fetch the latest version of the repository
|
||||||
if ! git fetch; then
|
if ! git fetch; then
|
||||||
@@ -34,7 +35,7 @@ if ! git fetch; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if there are any changes
|
# Check if there are any changes
|
||||||
if [[ $(git rev-list HEAD...origin/main --count) -eq 0 ]]; then
|
if [[ $(git rev-list HEAD...origin/$current_branch --count) -eq 0 ]]; then
|
||||||
echo "No changes found. Exiting."
|
echo "No changes found. Exiting."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -188,5 +189,4 @@ for folder in "${folders[@]}"; do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
Reference in New Issue
Block a user