iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cb002f1
)
minor enhancement for shellchecking things
author
Ian Kelling
<ian@iankelling.org>
Thu, 27 Jul 2023 07:04:48 +0000
(
03:04
-0400)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 27 Jul 2023 07:04:48 +0000
(
03:04
-0400)
brc
patch
|
blob
|
history
diff --git
a/brc
b/brc
index a29651bb6589bc0a38446415d3b06212cdec1791..afb73f101ee6cd8a78da4f7c458b6b963e4b58ac 100644
(file)
--- a/
brc
+++ b/
brc
@@
-15,8
+15,8
@@
else
# bleh shellcheck can't handle disabling in an elif, so nesting this if.
# shellcheck disable=SC2154 # set in .bashrc
if [[ -s $bashrc_dir/err ]]; then
# bleh shellcheck can't handle disabling in an elif, so nesting this if.
# shellcheck disable=SC2154 # set in .bashrc
if [[ -s $bashrc_dir/err ]]; then
- # shellcheck source=/a/bin/errhandle/err
- source $bashrc_dir/err
+
# shellcheck source=/a/bin/errhandle/err
+
source $bashrc_dir/err
fi
fi
fi
fi
@@
-2103,8
+2103,6
@@
sgu() {
sk() {
sk() {
-
-
# disable a warning with:
# shellcheck disable=SC2206 # reasoning
# disable a warning with:
# shellcheck disable=SC2206 # reasoning
@@
-2116,6
+2114,14
@@
sk() {
shellcheck -W 999 -x -e $quotes,$others "$@" || return $?
}
shellcheck -W 999 -x -e $quotes,$others "$@" || return $?
}
+skgit() {
+ local f
+ for f in $(i s | awk '$1 == "modified:" {print $2}'); do
+ if [[ $(head -n1 "$f") == '#!/bin/bash'* ]]; then
+ sk $f
+ fi
+ done
+}
# sl: ssh, but firsh rsync our bashrc and related files to a special
# directory on the remote host if needed.
# sl: ssh, but firsh rsync our bashrc and related files to a special
# directory on the remote host if needed.