From 50659e5e32bd29bc05e9b1ea514f63ae95615541 Mon Sep 17 00:00:00 2001 From: udeved Date: Fri, 22 May 2015 16:51:45 +0200 Subject: [PATCH] [util] add 2 new msg functions --- lib/util.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/util.sh b/lib/util.sh index d4f7783..c1a07b1 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -464,3 +464,16 @@ check_sanity(){ eval "$2" fi } + +show_version(){ + msg "manjaro-tools" + msg2 "version: ${version}" +} + +show_config(){ + if [[ -f ${USER_CONFIG}/manjaro-tools.conf ]]; then + msg2 "user_config: ${USER_CONFIG}/manjaro-tools.conf" + else + msg2 "manjaro_tools_conf: ${manjaro_tools_conf}" + fi +}