Raise exception if sdb does not exist 0.3.5
authorDonghoon Shin <dhs.shine@gmail.com>
Thu, 16 Feb 2017 06:28:00 +0000 (15:28 +0900)
committerDonghoon Shin <dhs.shine@gmail.com>
Thu, 16 Feb 2017 06:28:00 +0000 (15:28 +0900)
litmus/cmds/__init__.py

index f5b387b9cdfecf07be6970b145833d9e5a83b209..1053c24f9fc87a290eb325b7d11c807147616df1 100644 (file)
@@ -32,7 +32,7 @@ def load_project_list(projects):
 def sdb_does_exist():
     help_url = 'https://github.com/dhs-shine/litmus#prerequisite'
     try:
-        call('sdb version', shell=True, timeout=10)
+        call(['sdb', 'version'], timeout=10)
     except FileNotFoundError:
         raise Exception('Please install sdb. Refer to {}'.format(help_url))
     return