]> git.bzium.org/ - embe/man-symlinker.git/blobdiff - man-symlinker
Poprawka dla linków bez katalogu.
[embe/man-symlinker.git] / man-symlinker
index bb52842d30ad3b9fc430ebf6e834fc1a6e19fc02..529982969a85d193b43c4b0ef6593aa33a7e28d1 100755 (executable)
@@ -32,7 +32,7 @@ def process_file(name):
         return False
     if link.startswith(dir_name+'/'):
         link = link[len(dir_name)+1:]
         return False
     if link.startswith(dir_name+'/'):
         link = link[len(dir_name)+1:]
-    else:
+    elif '/' in link:
         link = '../' + link
     os.unlink(name)
     os.symlink(link, name)
         link = '../' + link
     os.unlink(name)
     os.symlink(link, name)