From c5e9037833e2419d4ce8d328da3f3e49eb0c326c Mon Sep 17 00:00:00 2001 From: bryan Date: Mon, 21 Jun 2021 09:26:14 -0400 Subject: [PATCH] Don't reprompt for wget install --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 5fb2e75..0d8bcfd 100755 --- a/installJRMC +++ b/installJRMC @@ -34,7 +34,7 @@ _printHelpAndExit() { --build Build RPM from source DEB (no installation) --mcversion VERSION - Build or install a specific MC version, ex. "28.0.25" + Build or install a specific MC version, ex. "28.0.25" (Default: scrape latest version from Interact) --outputdir PATH Generate rpmbuild output in this directory (Default: $PWD/output) --restorefile RESTOREFILE @@ -148,7 +148,7 @@ _init() { # Install script dependencies [[ "$ID" == "centos" ]] && _installPackage epel-release - [[ ! -v _mcversion ]] && _installPackage wget + [[ ! -v _mcversion ]] && [[ ! -x $(command -v wget) ]] && _installPackage wget # Set MC version _setVersion