Menu

bug: inconsistent sort

Help
Joshua V
2009-10-09
2013-04-07
  • Joshua V

    Joshua V - 2009-10-09

    Line 626 currently reads:
    cat "$dir_library/$playlist_name" | sort > "$dir_library/$playlist_name"

    This leads to an empty playlist and orphaned files intermittently. I've corrected it with:
    sort -o "$dir_library/$playlist_name" "$dir_library/$playlist_name"

    The -o flag to sort has been around a while; I suspect you could update the script w/o any concerns. If you want to play it safe, make the first version to sport it a dependency…

    Just a heads up. Great app!

     
  • Dave Vehrs

    Dave Vehrs - 2010-04-25

    Added Patch to CVS.  Thanks again.

     

Log in to post a comment.