Minify functions

This commit is contained in:
2020-06-08 21:22:12 -04:00
parent 92425b1b9f
commit 4efd85385e

View File

@@ -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