Skip to content

Commit

Permalink
bin/check: improve output messages
Browse files Browse the repository at this point in the history
  • Loading branch information
icy committed Apr 27, 2016
1 parent ee722c8 commit c675321
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ _has_shellcheck() {
_check_file() {
local _file="${1:-/x/x/x/x/x/x/x/}"

echo >&2 ":: $FUNCNAME: $1"

[[ -f "$_file" ]] \
|| {
echo >&2 ":: File not found '$_file'"
Expand All @@ -87,8 +89,12 @@ _check_file() {
}

_check_files() {
_has_shellcheck \
|| {
echo >&2 ":: WARN: shellcheck not found."
echo >&2 ":: WARN: Scripts will be checked by remote web server."
}
while (( $# )); do
echo >&2 ":: $FUNCNAME: $1"
_check_file "$1"
shift
done
Expand Down

0 comments on commit c675321

Please sign in to comment.