penguin/utils

my env utils

commit 26d6e4613ff45b23da203a8b432df4ef5f1b6a47

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-08-13T17:48:58Z
subjectExit 1 when jq is not present
commit 26d6e4613ff45b23da203a8b432df4ef5f1b6a47
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-08-13T17:48:58Z

    Exit 1 when jq is not present
---
 bash/bashrc/rbashrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc
index 6341bea..54d7bab 100644
--- a/bash/bashrc/rbashrc
+++ b/bash/bashrc/rbashrc
@@ -217,7 +217,7 @@ function rbash-list {
 }
 
 function r2ensource {
-	rbash-list
+	rbash-list || return 1
 
 	local _id _sel _tmp _en
 	_en=()