1 Commits

Author SHA1 Message Date
f6c027425b Major refactor, bump version to 0.2 2020-04-24 15:16:00 -04:00

View File

@@ -338,7 +338,7 @@ EOF
# Arguments: # Arguments:
# One or more package names # One or more package names
# Options: # Options:
# --noquery, -n: Do not query the package state (useful if installing a local RPM) # --noquery, -n: Do not query the package state
# Returns: # Returns:
# Will exit 1 if failed # Will exit 1 if failed
####################################### #######################################
@@ -346,6 +346,8 @@ EOF
_runDebug "${FUNCNAME[0]}" "$@" _runDebug "${FUNCNAME[0]}" "$@"
unset _noquery _pkg_array _url_pkg_array
if _input=$(getopt -o +n -l noquery -- "$@"); then if _input=$(getopt -o +n -l noquery -- "$@"); then
eval set -- "$_input" eval set -- "$_input"
while true; do while true; do
@@ -365,6 +367,8 @@ EOF
_printHelpAndExit 1 _printHelpAndExit 1
fi fi
echo "DEBUG:" "$@"
# 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
local -a _url_pkg_array local -a _url_pkg_array
@@ -387,6 +391,7 @@ EOF
# Install from package name (with gpg check) # Install from package name (with gpg check)
if [[ ${#_pkg_array[@]} -ge 1 ]]; then if [[ ${#_pkg_array[@]} -ge 1 ]]; then
echo "Installing:" "${_pkg_array[@]}" echo "Installing:" "${_pkg_array[@]}"
if [[ -n $_debug ]]; then if [[ -n $_debug ]]; then
if ! _pkg_install "${_pkg_array[@]}"; then if ! _pkg_install "${_pkg_array[@]}"; then