|
|
Shell scripts checking for old iTunes files
In the same Resources folder of the iTunes installer package, the file VolumeCheck checks for and deletes the receipt from the previous install of iTunes:
#!/bin/sh # if current iTunes pkg exists, delete it b/c of Installer bug if [ -e $1Library/Receipts/iTunes.pkg ] ; then rm -rf $1Library/Receipts/iTunes.pkg 2> /dev/null fi # return do nothing status to Installer exit 0I'm not sure what that first comment in the script means. Presumably, there's some bug in the installer that prevents updating an old version succesfuly; therefore, they just delete the remnants of the old version. As you noted, Rob, the bug in the shell script is the one that deletes every file on the hard drive; I wonder what the bug in the Installer itself is. By the way, $1 and $2 (and $n, where n is an integer) are not normal shell variables. I'm not very experienced with shell scripts, but, as I understand it, $1 refers to the first argument on the command line call, $2 to the second, etc. Therefore, if someone could find the script in there that executes the preflight script, we should be able to figure out the problem more preciesly. -Alex Hill |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|