From b76513d7b6461294a5b65a1c83156d2a7a935a7c Mon Sep 17 00:00:00 2001 From: Joseph Durel Date: Thu, 1 Feb 2018 19:52:23 -0500 Subject: [PATCH] Change `osascript` calls to use heredocs so they don't extend beyond 100 chars --- neofetch | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index c23cf985..d0eea8be 100755 --- a/neofetch +++ b/neofetch @@ -1603,13 +1603,23 @@ get_song() { "Linux") get_song_dbus "spotify" ;; "Mac OS X") - song="$(osascript -e 'tell application "Spotify" to artist of current track as string & " - " & name of current track as string')" + song="$(osascript <