From 4efd85385e94765b6760c0f599a4bc48e589a9e1 Mon Sep 17 00:00:00 2001 From: bryan Date: Mon, 8 Jun 2020 21:22:12 -0400 Subject: [PATCH] Minify functions --- installJRMC | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/installJRMC b/installJRMC index 33b199a..af04c7c 100755 --- a/installJRMC +++ b/installJRMC @@ -18,7 +18,7 @@ shopt -s extglob ####################################### installJRMC() { - _scriptversion="0.6" + _scriptversion="0.6-dev" _boardurl="https://yabb.jriver.com/interact/index.php/board,64.0.html" _outputdir="$_basedir/output" _createrepo_webroot="/srv/jriver" @@ -191,20 +191,9 @@ EOF } - err() { - - echo "Error: $*" >&2 - } - - - ####################################### - # Call this at the beginning of every function in order to track - ####################################### - debug() { - - [[ -n $_debug ]] && echo "Debug: $*" - } + err() { echo "Error: $*" >&2; } + debug() { [[ -n $_debug ]] && echo "Debug: $*"; } ####################################### # Prepend this to any command that you wish to execute with sudo