From 366d4eda8cb19ecb34dec2e4d821a28914ebfb5a Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 13 Sep 2019 11:13:41 -0400 Subject: ry and fix condition --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index 6b064d9..f9a87b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,8 +13,7 @@ pipeline { source /home/tgrogers-raid/a/common/gpgpu-sim-setup/common/export_gcc_version.sh 5.3.0 git remote add upstream https://github.com/purdue-aalp/gpgpu-sim_distribution git fetch upstream - cpp_diff= $(git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp") - if [[ $cpp_diff ]]; then + if git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp" ; then git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp" | xargs ./run-clang-format.py --clang-format-executable /tgrogers-raid/a/common/clang-format/6.0.1/clang-format fi ''' -- cgit v1.3