mirror of
https://github.com/jaclu/tmux-power-zoom.git
synced 2026-09-10 07:06:18 -04:00
changed linting tool
This commit is contained in:
parent
4ce4c4646f
commit
823bd5c854
|
|
@ -1,34 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Copyright (c) 2022: Jacob.Lundqvist@gmail.com
|
||||
# License: MIT
|
||||
#
|
||||
# Part of https://github.com/jaclu/tmux-power-zoom
|
||||
#
|
||||
# Version: 1.0.2 2022-04-14
|
||||
#
|
||||
# Does shellcheck on all relevant scripts in this project
|
||||
#
|
||||
|
||||
# shellcheck disable=SC1007
|
||||
CURRENT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
|
||||
cd "$CURRENT_DIR" || return
|
||||
|
||||
|
||||
checkables=(
|
||||
|
||||
# Obviously self exam should be done :)
|
||||
shellchecker.sh
|
||||
|
||||
power-zoom.tmux
|
||||
|
||||
scripts/*.sh
|
||||
)
|
||||
|
||||
for script in "${checkables[@]}"; do
|
||||
# abort as soon as one gives warnings
|
||||
echo "Checking: $script"
|
||||
shellcheck -x "$script" || exit 1
|
||||
|
||||
done
|
||||
Loading…
Reference in a new issue