3de0235ad26d4584727f4cce17c09f1b4ae6cee5

Author
Manuel Hutter <mhutter@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add missing newline to end of `spotify status` output (#5480)

Diff

 1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
 2index aa6a256c11b53a641311e06676680e03490d0e1a..d7baa11910b272eb62809a9c2928897872a2dd43 100644
 3--- a/plugins/osx/osx.plugin.zsh
 4+++ b/plugins/osx/osx.plugin.zsh
 5@@ -314,7 +314,7 @@ function spotify() {
 6         position=$(osascript -e 'tell application "Spotify" to player position as string' | tr ',' '.');
 7         position=$(echo "scale=2; $position / 60" | bc | awk '{printf "%0.2f", $0}');
 8 
 9-        printf "$reset""Artist: %s\nAlbum: %s\nTrack: %s \nPosition: %s / %s" "$artist" "$album" "$track" "$position" "$duration";
10+        printf "$reset""Artist: %s\nAlbum: %s\nTrack: %s \nPosition: %s / %s\n" "$artist" "$album" "$track" "$position" "$duration";
11       fi
12   }
13 
14@@ -412,17 +412,17 @@ function spotify() {
15         osascript -e 'tell application "Spotify" to playpause';
16         break ;;
17 
18-      "quit"    ) 
19+      "quit"    )
20         cecho "Quitting Spotify.";
21         osascript -e 'tell application "Spotify" to quit';
22         exit 1 ;;
23 
24-      "next"    ) 
25+      "next"    )
26         cecho "Going to next track." ;
27         osascript -e 'tell application "Spotify" to next track';
28         break ;;
29 
30-      "prev"    ) 
31+      "prev"    )
32         cecho "Going to previous track.";
33         osascript -e 'tell application "Spotify" to previous track';
34         break ;;