Ignore:
Timestamp:
2013-06-10T10:23:46+12:00 (11 years ago)
Author:
jmt12
Message:

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

File:
1 edited

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";
Note: See TracChangeset for help on using the changeset viewer.