aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess/jstore.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jsaccess/jstore.sh')
-rwxr-xr-xjsaccess/jstore.sh12
1 files changed, 12 insertions, 0 deletions
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