summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/main.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc/main.sh b/bashrc/main.sh
index 3c769b7..cd5c5c4 100644
--- a/bashrc/main.sh
+++ b/bashrc/main.sh
@@ -34,7 +34,7 @@ _self_update() {
read _merge;
if [[ $_merge != 'n' ]]; then
_local_commits="$(git rev-list old-origin..HEAD | xargs echo)"
- _local_changes="$(git status | grep Change)"
+ _local_changes="$(git status | grep '^# Change')"
if [[ -n "$_local_commits" ]]; then
echo -e "\033[31m*\033[0m You have some local commits. I will now try to use the new origin/master"