From 3c245bb637d48c8c2bca0440af10a8eec974517c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 22 Oct 2022 17:10:20 -0300 Subject: etc/sh/vcs-ps1.sh: Fix $JOBS count Bug introduced in 7c3a0a4f09c81558918b66deeafa486234a73294, when ShellCheck suggested to replace a 'grep | wc -l' combo with 'grep -c', but when I did I mishandled the '-v' option that was there. --- etc/sh/vcs-ps1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/sh/vcs-ps1.sh b/etc/sh/vcs-ps1.sh index 7cc528d..72df2c4 100644 --- a/etc/sh/vcs-ps1.sh +++ b/etc/sh/vcs-ps1.sh @@ -128,7 +128,7 @@ shell_status_level() { } shell_status_jobs() { - JOBS="$(jobs | grep -c autojump)" + JOBS="$(jobs | grep -cv autojump)" if [ "$JOBS" != 0 ]; then color -c red "$JOBS" fi -- cgit v1.2.3