Article 5SV6F [SOLVED] Why wont my while loop end?

[SOLVED] Why wont my while loop end?

by
dedricw1
from LinuxQuestions.org on (#5SV6F)
#!/bin/bash
cd Music
read -p "Enter the genre: " genre
mkdir $genre
read -p "Enter the first artist: " artist
while [ $artist != "end" ]
do # start of loop
mkdir $genre/$artist
sudo mkdir $genre/$artist/Albums
sudo mkdir $genre/$artist/Songs
read -p "Enter the next artist or end to quit: " genre
done #end of loop

tree $genre

Hi im new to this and was wondering why my loop wont end. Ive been trying figure it out for like an hour now but its not clicking in my head.latest?d=yIl2AUoC8zA latest?i=DnPJmbLGD44:HG3pa-H4mRk:F7zBnMy latest?i=DnPJmbLGD44:HG3pa-H4mRk:V_sGLiP latest?d=qj6IDK7rITs latest?i=DnPJmbLGD44:HG3pa-H4mRk:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments