14807: Merge branch 'master'
[arvados.git] / build / run-build-test-packages-one-target.sh
index b936842e69ece32783003ebfeee94f7eacc371b0..b98a4c0a7e0dec9d3c8110712881d05b92f5ec03 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash 
+#!/bin/bash
 # Copyright (C) The Arvados Authors. All rights reserved.
 #
 # SPDX-License-Identifier: AGPL-3.0
@@ -15,7 +15,7 @@ Syntax:
     If the build and test steps are successful, upload the packages
     to a remote apt repository (default: false)
 --rc
-    If the build is for a Release Candidate this param must be passed   
+    Optional Parameter to build Release Candidate
 --build-version <version>
     Version to build (default:
     \$ARVADOS_BUILDING_VERSION-\$ARVADOS_BUILDING_ITERATION or
@@ -50,6 +50,7 @@ fi
 
 TARGET=debian8
 UPLOAD=0
+RC=0
 
 declare -a build_args=()
 
@@ -69,7 +70,7 @@ while [ $# -gt 0 ]; do
             ;;
         --rc)
             RC=1
-            ;;    
+            ;;
         --build-version)
             build_args+=("$1" "$2")
             shift
@@ -134,4 +135,4 @@ if [[ "$UPLOAD" != 0 ]]; then
   title "End of upload packages (`timer`)"
 fi
 
-exit_cleanly
+exit_cleanly
\ No newline at end of file