From ff2cce71210e464a712c6d00db87e95c8a59d04e Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 23 Oct 2020 00:32:18 -0400 Subject: [PATCH 1/2] fixed off-by-one error on line 366 --- spotify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spotify b/spotify index f437170..5821e48 100755 --- a/spotify +++ b/spotify @@ -363,7 +363,8 @@ while [ $# -gt 0 ]; do exit 1; fi - osascript -e "tell application \"Spotify\" to set sound volume to $newvol"; + # changed $(newvol) to $(( newvol+1 )) to fix off-by-one error -SAC + osascript -e "tell application \"Spotify\" to set sound volume to $(( newvol+1 ))"; break ;; "toggle" ) From b537b5a14592bd0cf91ae62090233e283b70b935 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 23 Oct 2020 17:20:21 -0400 Subject: [PATCH 2/2] removed comment --- spotify | 1 - 1 file changed, 1 deletion(-) diff --git a/spotify b/spotify index 5821e48..65dfe1d 100755 --- a/spotify +++ b/spotify @@ -363,7 +363,6 @@ while [ $# -gt 0 ]; do exit 1; fi - # changed $(newvol) to $(( newvol+1 )) to fix off-by-one error -SAC osascript -e "tell application \"Spotify\" to set sound volume to $(( newvol+1 ))"; break ;;