Browse Source

Minify functions

bryan 3 years ago
parent
commit
4efd85385e
1 changed files with 3 additions and 14 deletions
  1. 3 14
      installJRMC

+ 3 - 14
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