You don't need to save the string to a variable, you can put it right into the `execute` method:

```ruby
execute <<-EOH.gsub(/^ {8}/, '')
  touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
  PROD=$(softwareupdate -l | grep -B 1 "Developer" | head -n 1 | awk -F"*" '{print $2}')
  softwareupdate -i $PROD -v
EOH
```