소스 검색

Fix --install rpm

bryan 3 년 전
부모
커밋
c503fd994e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      installJRMC

+ 2 - 1
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 $?