From c503fd994e01c559b41c7ca6c928e61882ee95d2 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 13 Jan 2022 22:41:30 -0500 Subject: [PATCH] Fix --install rpm --- installJRMC | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installJRMC b/installJRMC index e67f3e3..6dadb0b 100755 --- a/installJRMC +++ b/installJRMC @@ -496,7 +496,6 @@ buildRPM() { declare id i rpmbuild_cmd declare -a requires recommends declare -A dupes - declare -g MCRPM="$OUTPUTDIR/RPMS/x86_64/MediaCenter-$MCVERSION.x86_64.rpm" # skip rebuilding the rpm if it already exists if [[ -f "$MCRPM" ]]; then @@ -1462,6 +1461,8 @@ main() { [[ "$VERSION_SOURCE" == "user input" ]] && MCPKG="$MCPKG=$MCVERSION" fi + declare -g MCRPM="$OUTPUTDIR/RPMS/x86_64/MediaCenter-$MCVERSION.x86_64.rpm" + if (( UNINSTALL_SWITCH )); then uninstall exit $?