- Timestamp:
- Apr 19, 2013, 3:39:39 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307/pstamp/scripts
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp_cleanup.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/pstamp/scripts
- Property svn:mergeinfo changed
/trunk/pstamp/scripts merged: 35353-35354,35356,35362-35364,35366,35380,35384,35388,35396,35398,35409
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130307/pstamp/scripts/pstamp_cleanup.pl
r34231 r35412 183 183 } 184 184 185 my $command = "rm -r $dir"; 185 # do an ls of the directory before starting 186 # print "directory listing for $dir\n"; 187 # system "ls $dir"; 188 189 my $command = "rm -rf $dir"; 186 190 unless ($no_update) { 187 191 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 188 192 run(command => $command, verbose => $verbose); 189 193 unless ($success) { 190 my $rc = $error_code >> 8; 191 my_die("Unable to perform $command return status: $rc", $req_id, $rc); 194 if (-e $dir) { 195 my $rc = $error_code >> 8; 196 my_die("Unable to perform $command return status: $rc", $req_id, $rc); 197 } else { 198 print STDERR "rm claimed to fail but directory no longer exists\n"; 199 } 192 200 } 193 201 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
