Update record.sh