3 # Copyright (C) 2015 Jason Self <j@jxself.org>
5 # Copying and distribution of this file, with or without modification,
6 # are permitted in any medium without royalty provided the copyright
7 # notice and this notice are preserved. This file is offered as-is,
8 # without any warranty.
12 for f in *.command; do
13 n="$(basename "$f" .command)"
15 t="$n.$(date +%Y-%m-%d-%H%M%S)"
16 test -s "$r" || { echo "WARNING: missing $r"; continue; }
18 diff -U0 "$r" "$t" && { rm "$t"; continue; }
19 echo "ERROR: $n failed"