Skip to content

Commit e0b5235

Browse files
committed
changed to strings
1 parent dec42b4 commit e0b5235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/mac-player.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ main() {
256256
local full_track
257257
full_track=$(trackStatus "$PAUSE_ICON" "$PLAY_ICON")
258258

259-
if [ "$SCROLL" = false ]; then
259+
if [ "$SCROLL" = "false" ]; then
260260
sliceTrack "$full_track" "$MAX_LENGTH" > "$cache_file"
261261
fi
262262
fi
263263

264264
# Allow scrolling
265265
local str=$(cat "$cache_file")
266-
if [ "$SCROLL" = true ] && [ "${#str}" -ge $MAX_LENGTH ]; then
266+
if [ "$SCROLL" = "true" ] && [ "${#str}" -ge $MAX_LENGTH ]; then
267267
scroll "$str" "$MAX_LENGTH" "$SCROLL_SPEED"
268268
else
269269
echo "$str"

0 commit comments

Comments
 (0)