From 5130f3b07d14fe9ed3f8e7cf254fdc91dfdf4103 Mon Sep 17 00:00:00 2001 From: oGre Date: Mon, 18 Jul 2016 10:49:29 +0200 Subject: [PATCH] Indentation same as other loop constructs --- gitstatus.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gitstatus.sh b/gitstatus.sh index e2b6bce..6d7db3c 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -26,21 +26,20 @@ num_conflicts=0 num_untracked=0 while IFS='' read -r line || [[ -n "$line" ]]; do status=${line:0:2} - while [[ -n $status ]] - do + while [[ -n $status ]]; do case "$status" in -#two fixed character matches, loop finished + #two fixed character matches, loop finished \#\#) branch_line="${line/\.\.\./^}"; break ;; \?\?) ((num_untracked++)); break ;; U?) ((num_conflicts++)); break;; ?U) ((num_conflicts++)); break;; DD) ((num_conflicts++)); break;; AA) ((num_conflicts++)); break;; -#two character matches, first loop + #two character matches, first loop ?M) ((num_changed++)) ;; ?D) ((num_changed++)) ;; ?\ ) ;; -#single character matches, second loop + #single character matches, second loop U) ((num_conflicts++)) ;; \ ) ;; *) ((num_staged++)) ;;