#!/usr/bin/env python

import os
os.chdir('/tmp')
cmd = ['git init','git clone https://github.com/SarinI0/integrity.git']
command = 'sudo apt-get install git git-core -y'
os.system(command)
for command in cmd:
	os.system(command)
def find(name, path):
    for root, dirs, files in os.walk(path):
        if name in files:
            return os.path.join(root, name)
path = find('install.sh', '/tmp')
length = len('install.sh')
path = path[:-length]
os.chdir(path)
command = 'sudo bash install.sh'
p = os.system(command)


