mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
288 B
Bash
14 lines
288 B
Bash
#!/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"
|