Add scentr for automatic entr shellcheck

main
Rob Muhlestein 2 years ago
parent 9ac0fb4eaa
commit 9f6b21df21

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# This script will monitor the passed script (by path, default is
# 'build') for changes using entr and run shellcheck when changes are
# detected.
declare script=build
if [[ -n "$1" ]]; then
script=$1
fi
entr bash -c 'clear; shellcheck '"$script" <<< "$script"
Loading…
Cancel
Save