The following Bash script exits after the first
read -p line.
#!/bin/bash clear echo Put me next to your targeted .sh file! read -p "Press [Enter] key when placed next to target..." echo Type your .sh filename (target.sh)... read target chmod +x $target echo Target Converted! read -p "Press [Enter] key to Exit..."
Could somebody explain why the script exits and how do I prevent it?