#!/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 # if iTunes application currently exists, delete it if [ -e $2Applications/iTunes.app ] ; then rm -rf $2Applications/iTunes.app 2> /dev/null fi #### $file = "testdir /"; #oops, typo! system( "rm -rf $file" ); #double oops system( "rm -rf '$file'" ); #will probably get an error # from the command, but your # root dir is still there.