blob: de7da81acbef85b8c343bae05ae98b499e93a715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-aa,v 1.1 2004/05/13 18:48:32 ben Exp $
--- tools/check-updates.pl.orig Tue May 11 01:55:38 2004
+++ tools/check-updates.pl
@@ -258,10 +258,13 @@ sub printHelp
# exists, and if it doesn't exist it tries to create it.
sub checkTemporaryDirectory
{
+ my $fix_temporaryDirectory = $temporaryDirectory;
+ $fix_temporaryDirectory =~ s/\/$//;
+
# If your temporary directory does not exist, you must create it.
if (! -e $temporaryDirectory)
{
- mkdir($temporaryDirectory, $creationMask) ||
+ mkdir($fix_temporaryDirectory, $creationMask) ||
die "Error: Unable to create directory: $temporaryDirectory\nError: $!\n\n"
. "Exiting...\n";
return;
|