JGZ7GBCLGDQVN7FOJMXAR5BEB4MV6F4F2CIMUCIUV7E52AFIUFRAC for f in $(find . -name 'demo.sh' | sort); docleardemoheader "$(dirname "${f}")""${f}"done
lint() {for f in $(find "$(dirname "${BASH_SOURCE[0]}")" -name 'demo.sh' | sort); dodemoheader "$(dirname "${f}" | sed 's|^\./||')"shellcheck_dir "$(dirname "${f}")" || return 1done}run() {for f in $(find "$(dirname "${BASH_SOURCE[0]}")" -name 'demo.sh' | sort); dodemocleardemoheader "$(dirname "${f}" | sed 's|^\./||')""${f}"done}lint || exit 1run
shellcheck_dir() {local path="${1}"shiftpushd "${path}" > /dev/null || return 1set +elocal retval=0while IFS= read -r f; doif shellcheck -S style -x "${f}"; then:elseretval=1fidone < <(grep --exclude-dir .git "${@}" -l -R -e '^#\!.*sh' -e '^# shellcheck shell' | sort)popd > /dev/null || return 1return "${retval}"}