projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated for new paths also, which revealed a few locations that are
[feisty_meow.git]
/
scripts
/
files
/
safedel.pl
diff --git
a/scripts/files/safedel.pl
b/scripts/files/safedel.pl
index 30503fa50c4b0f87abbcd5e3b7f8d011e0e85040..c009cc2a4d6f15930a7fb1d88a2dfc4da727ac52 100644
(file)
--- a/
scripts/files/safedel.pl
+++ b/
scripts/files/safedel.pl
@@
-72,9
+72,15
@@
sub safedel {
# print "final list of whackees: @to_delete\n";
# we store the deleted files in a directory under the temporary directory.
# print "final list of whackees: @to_delete\n";
# we store the deleted files in a directory under the temporary directory.
+ if (! -d $TMP) {
+ mkdir "$TMP", 0700;
+ if (! -d $TMP) {
+ die "the TMP directory $TMP could not be created!\n";
+ }
+ }
$temp_subdir = $TMP . "/zz_del_keep";
if (! -d $temp_subdir) {
$temp_subdir = $TMP . "/zz_del_keep";
if (! -d $temp_subdir) {
- mkdir "$temp_subdir", 07
77
;
+ mkdir "$temp_subdir", 07
00
;
# create the subdirectory under temp if missing.
if (! -d $temp_subdir) {
die "the directory $temp_subdir could not be created!\n";
# create the subdirectory under temp if missing.
if (! -d $temp_subdir) {
die "the directory $temp_subdir could not be created!\n";