浏览代码

Always make SOURCES

bryan 2 周之前
父节点
当前提交
bef5b1ebf8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      installJRMC

+ 3 - 2
installJRMC

@@ -697,7 +697,9 @@ acquire_deb() {
   declare -g MC_SOURCE
   local fname
 
-  # Usually JRiver exlcudes the release number from the filename
+  [[ -d $OUTPUT_DIR/SOURCES ]] || execute mkdir -p "$OUTPUT_DIR/SOURCES"
+
+  # Usually JRiver excludes the release number from the filename
   # but in some cases (test builds) it may be included
   if [[ $MC_RELEASE -gt 1 ]]; then
     fname="MediaCenter-$MC_VERSION-$MC_RELEASE-$ARCH.deb"
@@ -1793,7 +1795,6 @@ main() {
   fi
 
   if ((BUILD_SWITCH)) && [[ $ID != "arch" ]]; then
-    [[ -d $OUTPUT_DIR/SOURCES ]] || execute mkdir -p "$OUTPUT_DIR/SOURCES"
     acquire_deb || { err "Could not download Media Center DEB package"; return 1; }
 
     if [[ $BUILD_TARGET =~ centos|fedora|suse || $CREATEREPO_TARGET =~ centos|fedora|suse ]]; then