diff options
author | EuAndreh <eu@euandre.org> | 2022-08-15 14:47:45 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-08-15 14:49:22 -0300 |
commit | 4b41b1af58b10ae6b7ce1ba0fa8475cec4e4405e (patch) | |
tree | b5b9938ef73f618124576095e61c4937e837d5fd | |
parent | bin/yt: Add working utility (diff) | |
download | dotfiles-4b41b1af58b10ae6b7ce1ba0fa8475cec4e4405e.tar.gz dotfiles-4b41b1af58b10ae6b7ce1ba0fa8475cec4e4405e.tar.xz |
mv etc/sh/check.sh bin/check: Also use generic ShellCommand command
-rwxr-xr-x | bin/check (renamed from etc/sh/check.sh) | 14 | ||||
-rw-r--r-- | etc/sh/rc | 1 |
2 files changed, 6 insertions, 9 deletions
diff --git a/etc/sh/check.sh b/bin/check index 07e9e66..4663bf3 100755 --- a/etc/sh/check.sh +++ b/bin/check @@ -50,15 +50,12 @@ shift $((OPTIND - 1)) cd -- "$(dirname -- "$0")" cd -- "$(git rev-parse --show-toplevel)" -shellcheck -xe 1090,1091 \ - "$XDG_CONFIG_HOME"/sh/rc \ - "$XDG_CONFIG_HOME"/sh/vcs-ps1.sh \ - "$XDG_CONFIG_HOME"/sh/check.sh \ - "$XDG_CONFIG_HOME"/sh/privrc.sh \ - "$XDG_CONFIG_HOME"/sh/cronjob.sh \ - "$XDG_CONFIG_HOME"/notmuch/default/hooks/post-new -if git grep FIXME -- ":(exclude)$XDG_CONFIG_HOME/bash/check.sh"; then +git ls-files | + xargs awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' | + xargs shellcheck -x + +if git grep FIXME -- ":(exclude)$0"; then printf 'Leftover FIXME markers\n' >&2 exit 1 fi @@ -76,3 +73,4 @@ fi # FIXME: # verify that the expiry date on the GPG key is greater than 1 year +# assert git pushed @@ -122,7 +122,6 @@ alias mm='msmtp-queue -r' alias s='vcs_status' alias d='vcs_diff' alias ds='vcs_diff_staged' -alias check='sh "$XDG_CONFIG_HOME"/sh/check.sh' alias tpd='cd "$(mkdtemp)"' alias l='ls -lahF --color' |