From 7f71960a591ca2732e8513f4aad883adc4974f76 Mon Sep 17 00:00:00 2001 From: David Todd Date: Mon, 11 Jan 2021 17:02:36 -0600 Subject: [PATCH] clean up music player --- bin/music_player | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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}"