Changeset 27584

Show
Ignore:
Timestamp:
10.06.2013 10:23:46 (6 years ago)
Author:
jmt12
Message:

I wasn't doing -r when attempting to clear directories left in /tmp by video processing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/hadoop_import.pl

    r27550 r27584  
    147147if (!&dirIsEmpty($gs_logs_dir)) 
    148148{ 
    149   &shellCommand('rm ' . $gs_logs_dir . '/*.*'); 
     149  &shellCommand('rm -f ' . $gs_logs_dir . '/*.*'); 
    150150} 
    151151if (!&dirIsEmpty('/tmp/greenstone')) 
    152152{ 
    153   &shellCommand('rm /tmp/greenstone/*.*'); 
    154   &shellCommand('rm /tmp/gsimport*'); 
     153  &shellCommand('rm -f /tmp/greenstone/*.*'); 
     154  &shellCommand('rm -rf /tmp/gsimport*'); 
    155155} 
    156156if ($is_rocks_cluster) 
    157157{ 
    158   &shellCommand('rocks run host "rm /tmp/greenstone/*.*"'); 
    159   &shellCommand('rocks run host "rm /tmp/gsimport*"'); 
     158  &shellCommand('rocks run host "rm -f /tmp/greenstone/*.*"'); 
     159  &shellCommand('rocks run host "rm -rf /tmp/gsimport*"'); 
    160160} 
    161161print "Done!\n";