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

This commit is contained in:
Janet B. Anderson
2001-06-25 19:28:11 +00:00
parent 50e67354ce
commit 7e9882e62d

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);