Don't try to create directory if symbolic link of same name exists.

This commit is contained in:
Janet B. Anderson
2001-10-01 17:42:09 +00:00
parent 692c3b64b9
commit d4107b4900

View File

@@ -37,7 +37,7 @@ $install_dir =~ s[/$][]; # remove trailing '/'
$install_dir =~ s[//][/]g; # replace '//' by '/'
# Do we have to create the directory?
unless (-d $install_dir)
unless ( (-d $install_dir) || (-l $install_dir) )
{
# Create dir only if -d option given
Usage ("$install_dir does not exist") unless ($opt_d);