You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by al...@apache.org on 2020/04/10 05:21:34 UTC

[openwhisk-wskdebug] 01/01: allow scancode.sh to be run repeatedly and locally

This is an automated email from the ASF dual-hosted git repository.

alexkli pushed a commit to branch scancode-local
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git

commit ec3984d32393e770339f946acb9444b902ed79a3
Author: Alexander Klimetschek <ak...@adobe.com>
AuthorDate: Thu Apr 9 22:20:56 2020 -0700

    allow scancode.sh to be run repeatedly and locally
---
 travis/scancode.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/travis/scancode.sh b/travis/scancode.sh
index 2c354bb..bb146bc 100755
--- a/travis/scancode.sh
+++ b/travis/scancode.sh
@@ -26,7 +26,13 @@ UTIL_DIR="$HOMEDIR/openwhisk-utilities"
 
 # clone OpenWhisk utilities repo. in order to run scanCode.py
 cd $HOMEDIR
-git clone https://github.com/apache/openwhisk-utilities.git
+
+if [ ! -d "openwhisk-utilities" ] ; then
+    git clone https://github.com/apache/openwhisk-utilities.git
+else
+    cd "openwhisk-utilities"
+    git pull
+fi
 
 # run scancode
 cd $UTIL_DIR