From f4636c75050f3ac3208d953c4d88c29d58309bdc Mon Sep 17 00:00:00 2001 From: Matt Hunter Date: Sun, 8 Mar 2026 17:06:44 -0400 Subject: Remove bash string indexing This syntax is undefined in POSIX shell. Instead, use what should be a more robust solution, and literally strip the $separator from the beginning of the string, rather than just hard coding a length. Signed-off-by: Matt Hunter --- git-sonar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-sonar b/git-sonar index 08a12df..52319b6 100755 --- a/git-sonar +++ b/git-sonar @@ -261,7 +261,7 @@ color_changes_status() { changes="$staged_changes$conflicted_changes$unstaged_changes$untracked_changes" fi - printf $PRINT_F_OPTION "${changes:1}" + printf $PRINT_F_OPTION "${changes#"$separator"}" } color_local_commits() { -- cgit v1.2.3