I have a perfectly functional script
for i in {1..15}
do
amixer -D pulse sset Master 1%+;
done
But the command only runs once when i call it as ./volume.sh
. If I copy and paste the code into the terminal, it runs fine. What's the difference?