diff --git a/bin/music_player b/bin/music_player index c7d0510..fc7b94a 100755 --- a/bin/music_player +++ b/bin/music_player @@ -1,6 +1,7 @@ #!/bin/bash -cd ~/Music -selected_song=$(ls | rofi -i -dmenu -p "Select a song to play") +cd ~/Music || exit + +selected_song=$(ls | rofi -i -dmenu -p "Select a song to play") || exit notify-send "Playing ${selected_song}" -mplayer ${selected_song} \ No newline at end of file +mplayer "${selected_song}"