Don't try to create directory if symbolic link of same name exists.
This commit is contained in:
1 parent
50e67354ce
commit
7e9882e62d
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user