Compare commits
1 Commits
4241a04463
...
be6908b9d4
| Author | SHA1 | Date | |
|---|---|---|---|
| be6908b9d4 |
10
installJRMC
10
installJRMC
@@ -40,8 +40,6 @@ installJRMC () {
|
|||||||
|
|
||||||
_printHelpAndExit () {
|
_printHelpAndExit () {
|
||||||
|
|
||||||
_runDebug "${FUNCNAME[0]}"
|
|
||||||
|
|
||||||
cat <<-'EOF'
|
cat <<-'EOF'
|
||||||
USAGE:
|
USAGE:
|
||||||
installJRMC [[OPTION] [VALUE]]...
|
installJRMC [[OPTION] [VALUE]]...
|
||||||
@@ -105,8 +103,6 @@ EOF
|
|||||||
|
|
||||||
_parseInput () {
|
_parseInput () {
|
||||||
|
|
||||||
_runDebug "${FUNCNAME[0]}"
|
|
||||||
|
|
||||||
if _input=$(getopt -o +vdhu -l rpmbuild,outputdir:,mcversion:,restorefile:,betapass:,service:,version,debug,help,uninstall,createrepo,createrepo-webroot:,createrepo-user:,vncpass:,display: -- "$@"); then
|
if _input=$(getopt -o +vdhu -l rpmbuild,outputdir:,mcversion:,restorefile:,betapass:,service:,version,debug,help,uninstall,createrepo,createrepo-webroot:,createrepo-user:,vncpass:,display: -- "$@"); then
|
||||||
eval set -- "$_input"
|
eval set -- "$_input"
|
||||||
while true; do
|
while true; do
|
||||||
@@ -174,7 +170,7 @@ EOF
|
|||||||
|
|
||||||
_runDebug () {
|
_runDebug () {
|
||||||
|
|
||||||
[[ -n $_debug ]] && echo "Running: " "$@"
|
[[ -n $_debug ]] && echo "Running: $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -256,7 +252,7 @@ EOF
|
|||||||
|
|
||||||
_installPackage () {
|
_installPackage () {
|
||||||
|
|
||||||
_runDebug "${FUNCNAME[0]}" "$@"
|
_runDebug "${FUNCNAME[0]}"
|
||||||
|
|
||||||
# We will add packages to this array if their command is not available
|
# We will add packages to this array if their command is not available
|
||||||
local -a _pkg_array
|
local -a _pkg_array
|
||||||
@@ -290,7 +286,7 @@ EOF
|
|||||||
|
|
||||||
_packageQuirks () {
|
_packageQuirks () {
|
||||||
|
|
||||||
_runDebug "${FUNCNAME[0]}" "$@"
|
_runDebug "${FUNCNAME[0]}"
|
||||||
|
|
||||||
unset _url_pkg
|
unset _url_pkg
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user