about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJon Erling Hustadnes <JonErling.Hustadnes@gmail.com>2018-12-18 21:22:14 +0100
committerJon Erling Hustadnes <JonErling.Hustadnes@gmail.com>2018-12-18 21:22:14 +0100
commitec048e93fe0a4b7d2079c0af1364574906da9e7f (patch)
treedc792de0f2ddcbdcd091d93ac3af49740710ef0a
parent29222004d0baa6f19f9ecba1b03b218716a13cb3 (diff)
downloadranger-ec048e93fe0a4b7d2079c0af1364574906da9e7f.tar.gz
updated variable name
-rw-r--r--ranger/container/bookmarks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py
index 846a6585..cbfc541a 100644
--- a/ranger/container/bookmarks.py
+++ b/ranger/container/bookmarks.py
@@ -187,8 +187,8 @@ class Bookmarks(FileManagerAware):
             os.chmod(path_new, old_perms.st_mode)
 
             if os.path.islink(self.path):
-                link_path = os.path.realpath(self.path)
-                os.rename(path_new, link_path)
+                target_path = os.path.realpath(self.path)
+                os.rename(path_new, target_path)
             else:
                 os.rename(path_new, self.path)