mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +00:00
14 lines
288 B
Plaintext
14 lines
288 B
Plaintext
|
#!/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"
|