Add set -x to see what scripts are doing