Create diag.sh