Changes between Version 10 and Version 11 of Plugins/Execute


Ignore:
Timestamp:
09/09/2010 09:25:56 PM (14 years ago)
Author:
narren
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plugins/Execute

    v10 v11  
    140140for format in "${formats[@]}"; do 
    141141    while read file; do  
    142     log "Extracting \"$file\"" 
    143     cd $(dirname "$file") 
    144     file=$(basename "$file") 
    145     # if extraction_subdir is not empty, extract to subdirectory 
    146     if [[ ! -z "$extraction_subdir" ]] ; then 
    147         mkdir "$extraction_subdir" 
    148         cd "$extraction_subdir" 
    149         file="../$file" 
    150     fi 
    151     ${commands[$format]} "$file" 
     142        log "Extracting \"$file\"" 
     143        cd $(dirname "$file") 
     144        file=$(basename "$file") 
     145        # if extraction_subdir is not empty, extract to subdirectory 
     146        if [[ ! -z "$extraction_subdir" ]] ; then 
     147            mkdir "$extraction_subdir" 
     148            cd "$extraction_subdir" 
     149            file="../$file" 
     150        fi 
     151        ${commands[$format]} "$file" 
    152152    done < <(find "$torrentpath/$torrentname" -iname "*.${format}" ) 
    153153done