[tor-commits] [chutney/master] Only try to run shellcheck --version if it's available.

teor at torproject.org teor at torproject.org
Thu Aug 1 06:41:20 UTC 2019


commit c7d42e981932625ea80733598555ebe8fa9cf0d4
Author: Alexander Færøy <ahf at torproject.org>
Date:   Thu Jun 20 19:50:54 2019 +0200

    Only try to run shellcheck --version if it's available.
    
    See: https://bugs.torproject.org/30928
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 795b868..504fd7e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -168,7 +168,7 @@ install:
   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then dpkg-query --show; fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list --versions; fi
   - python --version
-  - shellcheck --version
+  - if command -v shellcheck ; then shellcheck --version; fi
   - tor --version
 
 script:





More information about the tor-commits mailing list