Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

323 B
Raw Blame
#!/usr/bin/env bash

set -euo pipefail

mode=${1:-error}
[[ "$mode" =~ ^(error|warning)$ ]] || { echo "Usage: $0 [error|warning]"; exit 1; }

cd "$(dirname "$0")/.." || exit 1

find script -maxdepth 1 -type f -print0 |
  xargs -0 grep -l -E '^#!(/bin/|/usr/bin/env )(sh|bash|dash)' |
  xargs -r shellcheck -x -S "$mode" -C