From ac313333aa633c6f9d2b6457705b22b82a1a82ee Mon Sep 17 00:00:00 2001 From: mrjk Date: Fri, 16 Feb 2018 03:39:38 -0500 Subject: [PATCH] Fix: tomb function call workflow wasn;t good --- lib/idmgr_mod_tomb.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/idmgr_mod_tomb.sh b/lib/idmgr_mod_tomb.sh index 64191ab..a969945 100644 --- a/lib/idmgr_mod_tomb.sh +++ b/lib/idmgr_mod_tomb.sh @@ -152,7 +152,7 @@ idm_tomb__push () { local id=$1 local arg=${2-} - idm_tomb__init $id + idm_tomb_require_enabled $id # Manage argument if grep -sq "$arg" $IDM_CONFIG_DIR/git/$id/known_hosts ; then @@ -245,9 +245,8 @@ idm_tomb__encrypt () local id=$1 # Sanity check: id and local repo - idm_tomb__init $id - #idm_tomb_require_enabled $id - #idm_tomb_require_valid_local_repo || idm_exit 1 ERR "Cound not continue" + idm_tomb_require_enabled $id + idm_tomb_require_valid_local_repo || idm_exit 1 ERR "Cound not continue" # We check tomb repo here lib_git_is_repo $git_tomb_dir $git_tomb_work_tree || \ @@ -303,6 +302,9 @@ idm_tomb__decrypt () idm_exit 1 ERR "Could not extract tomb" fi + # Sync :D + #idm_tomb__sync $id + lib_log NOTICE "Your tomb has been decrypted"