Created
April 6, 2018 15:38
-
-
Save CyberShadow/2e8f01895c248111c171e982313bb008 to your computer and use it in GitHub Desktop.
Watch DustMite changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
set -eu | |
setopt null_glob | |
if [ -z ${IN_WATCH+x} ] | |
then | |
export IN_WATCH=1 | |
watch -c -n 0.1 "$0" "$@" | |
else | |
clear | |
ls -al "$1".reduced/**/*.d || true | |
for DIR in "$1.test" "$1".lookahead.* | |
do | |
if test -e "$DIR" | |
then | |
colordiff -ru "$1".reduced "$DIR" || true | |
echo | |
echo | |
fi | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment