aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-22 17:10:20 -0300
committerEuAndreh <eu@euandre.org>2022-10-22 17:10:23 -0300
commit3c245bb637d48c8c2bca0440af10a8eec974517c (patch)
tree206c5158145059346eb34dc9972ac4e0390d453c
parentetc/guix/system.scm: Add qemu-binfmt-service-type (diff)
downloaddotfiles-3c245bb637d48c8c2bca0440af10a8eec974517c.tar.gz
dotfiles-3c245bb637d48c8c2bca0440af10a8eec974517c.tar.xz
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.
-rw-r--r--etc/sh/vcs-ps1.sh2
1 files changed, 1 insertions, 1 deletions
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