summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2012-01-01 11:16:01 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2012-01-01 11:16:01 -0500
commit40d046af9ab265cfb9ab420c9dc8c10defea47be (patch)
treea0cd48f6b16898a82d9c1eedd302e0ae18a75107
parentc4538b1c0d7db95d9f2a3e63f92164fcfdc377dd (diff)
downloaddotfiles-40d046af9ab265cfb9ab420c9dc8c10defea47be.tar.gz
dotfiles-40d046af9ab265cfb9ab420c9dc8c10defea47be.tar.bz2
dotfiles-40d046af9ab265cfb9ab420c9dc8c10defea47be.zip
Fix adding a directory with a trailing slash
Closes: #6
-rw-r--r--dotfiles/core.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py
index aa0dce9..e9f34bc 100644
--- a/dotfiles/core.py
+++ b/dotfiles/core.py
@@ -137,6 +137,7 @@ class Dotfiles(object):
def _perform_action(self, action, files):
for file in files:
+ file = file.rstrip('/')
if os.path.basename(file).startswith('.'):
getattr(Dotfile(file, self._fqpn(file), self.homedir), action)()
else: