Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh 
    # if current iTunes pkg exists, delete it b/c of Installer bug
    ...
    if [ -e $2Applications/iTunes.app ] ; then
    rm -rf $2Applications/iTunes.app 2> /dev/null
    fi
    
  2. or download this
    $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.