diff --git a/installJRMC b/installJRMC index 13243eb..0eb0cd3 100755 --- a/installJRMC +++ b/installJRMC @@ -168,8 +168,16 @@ EOF } + _runDebug () { + + [[ -n $_debug ]] && echo "Running $1" + } + + _checkUser () { + _runDebug "${FUNCNAME[0]}" + if [[ "$_user" == "root" ]]; then cat < $_service_fname @@ -728,6 +776,8 @@ EOF" _serviceX11VNC () { + _runDebug "${FUNCNAME[0]}" + _installPackage x11vnc _setVNCPass @@ -761,6 +811,8 @@ EOF" _serviceCreaterepo () { + _runDebug "${FUNCNAME[0]}" + _generateServiceVars "jriver-createrepo" "${_bash_cmd[@]}" "cat <<-EOF > $_service_fname @@ -791,6 +843,8 @@ EOF" _uninstall () { + _runDebug "${FUNCNAME[0]}" + read -r -p "Do you really want to uninstall all JRiver Media Center files? [y/N] " _response _response=${_response,,} # tolower [[ ! "$_response" =~ ^(yes|y)$ ]] && echo "Cancelling uninstall..." && exit 0