clean up script
This commit is contained in:
parent
f30168fa52
commit
eab53b9a71
@ -14,14 +14,12 @@ shift $((OPTIND - 1))
|
||||
A=${1:-geth}
|
||||
B=${2:-plugeth}
|
||||
|
||||
if [[ -n "$output_dir" ]]; then
|
||||
mkdir -p $output_dir
|
||||
if [[ -z "$output_dir" ]]; then
|
||||
output_dir=$(mktemp -d)
|
||||
fi
|
||||
|
||||
A_OUTPUT="$output_dir/A"
|
||||
B_OUTPUT="$output_dir/B"
|
||||
else
|
||||
A_OUTPUT=$(mktemp -d -t A_XXXX)
|
||||
B_OUTPUT=$(mktemp -d -t B_XXXX)
|
||||
fi
|
||||
|
||||
./dumpdiff.$A $A_OUTPUT
|
||||
./dumpdiff.$B $B_OUTPUT
|
||||
@ -34,5 +32,4 @@ for file in $(ls $A_OUTPUT); do
|
||||
mv $tmpfile "$dir/$file"
|
||||
done
|
||||
(set -x; diff "${A_OUTPUT}/$file" "${B_OUTPUT}/$file")
|
||||
echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user