Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dino committed Oct 20, 2021
1 parent f34123c commit 63d09ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ def run_command(cmd=""):


#install sunfounder_io
print("install sunfounder_io")
print("install sunfounder-io")
os.chdir('/home/pi')
if os.path.exists('/home/pi/sunfounder_io'):
run_command('sudo rm -r sunfounder_io/')
if os.path.exists('/home/pi/sunfounder-io'):
os.chdir('/home/pi/sunfounder-io')
run_command('sudo rm -r sunfounder-io/')

run_command('git clone https://github.com/sunfounder/sunfounder-io.git')
os.chdir('/home/pi/sunfounder_io')
os.chdir('/home/pi/sunfounder-io')
run_command('sudo python3 setup.py install')

0 comments on commit 63d09ed

Please sign in to comment.