Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Controlling iTunes from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Controlling iTunes from the Terminal
Authored by: linky on Apr 24, '04 05:22:38PM
All you need to do is make this change to the offending line (line 80, the way I saved it:)
if [ $(($2)) -gt 0 ]; then
The bash manpage will tell you the $((...)) operator forces arithmetic expansion, which eliminates the comparison between a string and an integer.

[ Reply to This | # ]