diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-11-26 17:18:56 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-11-26 17:18:56 -0200 |
commit | 5f1590e0722ee5ee9fed2ccc43adfb88f00218fd (patch) | |
tree | 80701dcf0437f4134ca1c15ea1ff7bba72a10230 /lib/keyringer/actions/ls | |
parent | a706c54574b389c3e2f74ff487b1b7ca42483dc3 (diff) | |
parent | 0358ba548d9d3aaaeb23984e092318522238bca9 (diff) | |
download | keyringer-5f1590e0722ee5ee9fed2ccc43adfb88f00218fd.tar.gz keyringer-5f1590e0722ee5ee9fed2ccc43adfb88f00218fd.tar.bz2 |
Imported Upstream version 0.2.9upstream_keyringer_0.2.9
Diffstat (limited to 'lib/keyringer/actions/ls')
-rwxr-xr-x | lib/keyringer/actions/ls | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/keyringer/actions/ls b/lib/keyringer/actions/ls index ec8080b..bb66263 100755 --- a/lib/keyringer/actions/ls +++ b/lib/keyringer/actions/ls @@ -10,7 +10,10 @@ source "$LIB" || exit 1 # Aditional parameters CWD="`pwd`" -# Run list command +# Avoid leading slash shift -cd "$KEYDIR" && ls $* +ARGS="`echo "$*" | sed -e "s|^/*||"`" + +# Run list command +cd "$KEYDIR" && ls $ARGS cd "$CWD" |