Browse Source

layerindex: don't use shell=True when cloning

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton 5 years ago
parent
commit
cb4aab7406
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/bblayers/layerindex.py

+ 1 - 1
lib/bblayers/layerindex.py

@@ -28,7 +28,7 @@ class LayerIndexPlugin(ActionPlugin):
         layerdir = os.path.join(repodir, subdir)
         if not os.path.exists(repodir):
             if fetch_layer:
-                result = subprocess.call('git clone %s %s' % (url, repodir), shell = True)
+                result = subprocess.call(['git', 'clone', url, repodir])
                 if result:
                     logger.error("Failed to download %s" % url)
                     return None, None, None