diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-20 11:10:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-20 11:10:22 -0300 |
commit | 4b4aff2edac956224849d36fe83f826303d25efd (patch) | |
tree | ed8446593f57b091730a40ea93c626548c7328dc /lib/keyringer/actions/rmdir | |
parent | 5f1590e0722ee5ee9fed2ccc43adfb88f00218fd (diff) | |
parent | 013726598e074399344c0bf435e057bc8049959a (diff) | |
download | keyringer-4b4aff2edac956224849d36fe83f826303d25efd.tar.gz keyringer-4b4aff2edac956224849d36fe83f826303d25efd.tar.bz2 |
Imported Upstream version 0.3upstream_keyringer_0.3
Diffstat (limited to 'lib/keyringer/actions/rmdir')
-rwxr-xr-x | lib/keyringer/actions/rmdir | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/keyringer/actions/rmdir b/lib/keyringer/actions/rmdir new file mode 100755 index 0000000..398cf11 --- /dev/null +++ b/lib/keyringer/actions/rmdir @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Remove folders. +# + +# Load functions +LIB="`dirname $0`/../functions" +source "$LIB" || exit 1 + +# Aditional parameters +CWD="`pwd`" + +# Avoid leading slash +shift +ARGS="`echo "$*" | sed -e "s|^/*||"`" + +# Run rmdir command +cd "$KEYDIR/$RELATIVE_PATH" && rmdir $ARGS +cd "$CWD" |