Fixed tab/spaces

This commit is contained in:
Ian Walker 2015-06-15 22:22:53 +09:00
commit 9724ff975f

View file

@ -162,6 +162,7 @@ function itunes() {
opt="set sound volume to $1" #$1 Due to the shift opt="set sound volume to $1" #$1 Due to the shift
;; ;;
status|nowplaying) status|nowplaying)
# Inspired by: http://hints.macworld.com/article.php?story=20011108211802830
local state=`osascript -e 'tell application "iTunes" to player state as string'` local state=`osascript -e 'tell application "iTunes" to player state as string'`
echo "iTunes is currently $state" echo "iTunes is currently $state"
if [ "$state" = "playing" ]; then if [ "$state" = "playing" ]; then