From 9eaee9f03dea9a155ff7e216535e5f1b63aad738 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Wed, 19 Jun 2013 12:19:11 +0200 Subject: jsaccess: add "jstore edit" --- jsaccess/jstore.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jsaccess/jstore.sh b/jsaccess/jstore.sh index a82780c..4539ff2 100755 --- a/jsaccess/jstore.sh +++ b/jsaccess/jstore.sh @@ -265,6 +265,13 @@ action_rmall() { echo "DELETED directory $enc_path" } +action_edit() { + _pass_read + _index_decrypt + vim $tmp + _index_encrypt +} + action_init() { store=$1 mkdir $store ||clean_exit 1 @@ -348,6 +355,11 @@ rmall) _store_get $2 action_rmall ;; +edit) + [ $# -ne 1 -a $# -ne 2 ] && usage_exit + _store_get $2 + action_edit + ;; init) [ $# -ne 2 ] && usage_exit action_init $2 -- cgit v1.2.3-59-g8ed1b