diff options
| author | EuAndreh <eu@euandre.org> | 2022-10-20 11:07:19 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2022-10-20 11:07:20 -0300 |
| commit | 7c3a0a4f09c81558918b66deeafa486234a73294 (patch) | |
| tree | f7b0a320665021fd5c2d4b43026955dfeefc1ab1 /etc/sh | |
| parent | bin/cl: Handle -l option (diff) | |
| download | dotfiles-7c3a0a4f09c81558918b66deeafa486234a73294.tar.gz dotfiles-7c3a0a4f09c81558918b66deeafa486234a73294.tar.xz | |
Fix all ShellCheck warnings
IOW, `make check-shellcheck` passes.
Diffstat (limited to '')
| -rwxr-xr-x | etc/sh/cronjob.sh | 1 | ||||
| -rw-r--r-- | etc/sh/rc | 1 | ||||
| -rw-r--r-- | etc/sh/vcs-ps1.sh | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/etc/sh/cronjob.sh b/etc/sh/cronjob.sh index 1e11b500..05022e09 100755 --- a/etc/sh/cronjob.sh +++ b/etc/sh/cronjob.sh @@ -65,6 +65,7 @@ done shift $((OPTIND - 1)) +# shellcheck disable=1090 . ~/.usr/etc/sh/rc CMD="$*" with-email -s "$CMD" -- "$@" 1>>"$XDG_LOG_HOME"/euandreh/mcron.log 2>&1 @@ -1,4 +1,5 @@ #!/bin/sh +# shellcheck disable=1090,1091 export ENV=~/.profile diff --git a/etc/sh/vcs-ps1.sh b/etc/sh/vcs-ps1.sh index b9a849a6..7cc528d1 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 -v autojump | wc -l)" + JOBS="$(jobs | grep -c autojump)" if [ "$JOBS" != 0 ]; then color -c red "$JOBS" fi |
