From afd3cbdf1683c03ddb3656521a76066d189d27f2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 1 Feb 2011 17:09:50 -0200 Subject: Removing dots from ls action --- lib/keyringer/actions/ls.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/keyringer/actions/ls.rb b/lib/keyringer/actions/ls.rb index 2fac17b..2401a1d 100644 --- a/lib/keyringer/actions/ls.rb +++ b/lib/keyringer/actions/ls.rb @@ -22,8 +22,11 @@ module Keyringer module Actions class Ls def execute - path = Keyring::UserConfig.instance.path - Dir.entries(path + "/keys/#{$args[0]}").join(' ') + path = Keyring::UserConfig.instance.path + files = Dir.entries(path + "/keys/#{$args[0]}") + files.delete('.') + files.delete('..') + files.join(' ') end end end -- cgit v1.2.3