title: Invalid bash script when execute it in Ubuntu Server 18.04 through SSH terminal
body: <p>I have the following bash script</p>
  
  <pre><code>#!/bin/bash
  read -p 'Provide path to iso file' isofile
  
  read -p 'Provide folder name to extract ISO in' foldername
  
  echo Mounting ISO
  sudo mount -o loop /mnt/test/$isofile /mnt/iso
  </code></pre>
  
  <p>in SSH terminal, I try to execute it as</p>
  
  <pre><code>$ bash myscript.sh
  </code></pre>
  
  <p>I got</p>
  
  <pre><code>Provide folder name to extract ISO in
  ': not a valid identifier: `foldername
  myscript.sh: line 7: $'\r': command not found
  Mounting ISO
  : failed to setup loop device for /mnt/MyDisk.
  </code></pre>
  
  <p>I am very new in bash script. What I did wrong ?</p>