aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-08 21:45:31 -0400
committerJack Lloyd <[email protected]>2017-09-08 21:45:31 -0400
commit0e8808051824c14be6c0b171ca3fafe7b8f8e3fc (patch)
treede6e318b1e55d9edbbc30f704a57437b5369b3e4
parentd57cda1baea38f4a27e852e8ba1b16ee0ab9fcc8 (diff)
Fix var assignment
-rwxr-xr-xsrc/scripts/ci_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index f83a9eb1d..52b476c15 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -290,6 +290,8 @@ def main(args=None):
print('Usage: %s [options] target' % (args[0]))
return 1
+ target = args[1]
+
py_interp = 'python'
use_python2 = have_prog('python2')
@@ -322,8 +324,6 @@ def main(args=None):
# no benefit
options.compiler_cache = None
- target = args[1]
-
if target == 'sonar' and os.getenv('SONAR_TOKEN') is None:
print('Skipping Sonar scan due to missing SONAR_TOKEN env variable')
return 0