aboutsummaryrefslogtreecommitdiff
path: root/etc/sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-20 11:07:19 -0300
committerEuAndreh <eu@euandre.org>2022-10-20 11:07:20 -0300
commit7c3a0a4f09c81558918b66deeafa486234a73294 (patch)
treef7b0a320665021fd5c2d4b43026955dfeefc1ab1 /etc/sh
parentbin/cl: Handle -l option (diff)
downloaddotfiles-7c3a0a4f09c81558918b66deeafa486234a73294.tar.gz
dotfiles-7c3a0a4f09c81558918b66deeafa486234a73294.tar.xz
Fix all ShellCheck warnings
IOW, `make check-shellcheck` passes.
Diffstat (limited to '')
-rwxr-xr-xetc/sh/cronjob.sh1
-rw-r--r--etc/sh/rc1
-rw-r--r--etc/sh/vcs-ps1.sh2
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
diff --git a/etc/sh/rc b/etc/sh/rc
index d5801b86..69606fa3 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -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