|
@@ -34,7 +34,7 @@ _printHelpAndExit() {
|
|
--build
|
|
--build
|
|
Build RPM from source DEB (no installation)
|
|
Build RPM from source DEB (no installation)
|
|
--mcversion VERSION
|
|
--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
|
|
--outputdir PATH
|
|
Generate rpmbuild output in this directory (Default: $PWD/output)
|
|
Generate rpmbuild output in this directory (Default: $PWD/output)
|
|
--restorefile RESTOREFILE
|
|
--restorefile RESTOREFILE
|
|
@@ -148,7 +148,7 @@ _init() {
|
|
|
|
|
|
# Install script dependencies
|
|
# Install script dependencies
|
|
[[ "$ID" == "centos" ]] && _installPackage epel-release
|
|
[[ "$ID" == "centos" ]] && _installPackage epel-release
|
|
- [[ ! -v _mcversion ]] && _installPackage wget
|
|
|
|
|
|
+ [[ ! -v _mcversion ]] && [[ ! -x $(command -v wget) ]] && _installPackage wget
|
|
|
|
|
|
# Set MC version
|
|
# Set MC version
|
|
_setVersion
|
|
_setVersion
|